mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- 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
This commit is contained in:
parent
6b85eb58b2
commit
4737910b69
51 changed files with 422 additions and 373 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue