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 /sapi/apache2handler/php_functions.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 'sapi/apache2handler/php_functions.c')
-rw-r--r-- | sapi/apache2handler/php_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index dbad4995d0..65f913a217 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -75,7 +75,7 @@ PHP_FUNCTION(virtual) int filename_len; request_rec *rr; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { return; } @@ -121,7 +121,7 @@ PHP_FUNCTION(apache_lookup_uri) char *filename; int filename_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { return; } |