diff options
| author | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 | 
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-06-06 21:28:16 +0000 | 
| commit | 4737910b69eba83b5ba6dd2d43f88a7bd3461ccf (patch) | |
| tree | dc6ecafe9a79a17cbb6d4a96b83a1bcbda30e5a8 /ext/posix/posix.c | |
| parent | 6b85eb58b27a60cfc4d78ad0a85afeda373132c5 (diff) | |
| download | php-git-4737910b69eba83b5ba6dd2d43f88a7bd3461ccf.tar.gz | |
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
Diffstat (limited to 'ext/posix/posix.c')
| -rw-r--r-- | ext/posix/posix.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 3ac1dc4dfd..580911afa6 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -838,7 +838,7 @@ PHP_FUNCTION(posix_mkfifo)  	long mode;  	int     result; -	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", &path, &path_len, &mode) == FAILURE) { +	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl", &path, &path_len, &mode) == FAILURE) {  		RETURN_FALSE;  	} @@ -871,7 +871,7 @@ PHP_FUNCTION(posix_mknod)  	php_dev = 0; -	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|ll", &path, &path_len, +	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|ll", &path, &path_len,  			&mode, &major, &minor) == FAILURE) {  		RETURN_FALSE;  	} @@ -951,7 +951,7 @@ PHP_FUNCTION(posix_access)  	int filename_len, ret;  	char *filename, *path; -	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &mode) == FAILURE) { +	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &filename, &filename_len, &mode) == FAILURE) {  		RETURN_FALSE;  	}  | 
