summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-14 16:57:38 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-14 16:58:07 +0200
commite065d97e9463f548d66b3292bd1dfccc29228061 (patch)
treefbb45d3fd28c858fa08d1e5ea76092f3bcc90b64 /ext
parent187efc6496b71ed73d3723aac243b1989afc81d1 (diff)
downloadphp-git-e065d97e9463f548d66b3292bd1dfccc29228061.tar.gz
Sync zpp in phar interceptors
This should match the zpp of the intercepted functions...
Diffstat (limited to 'ext')
-rw-r--r--ext/phar/func_interceptors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c
index f7cfe2249f..9987f79572 100644
--- a/ext/phar/func_interceptors.c
+++ b/ext/phar/func_interceptors.c
@@ -36,7 +36,7 @@ PHAR_FUNC(phar_opendir) /* {{{ */
goto skip_phar;
}
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|z", &filename, &filename_len, &zcontext) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|r!", &filename, &filename_len, &zcontext) == FAILURE) {
RETURN_THROWS();
}
@@ -347,7 +347,7 @@ PHAR_FUNC(phar_fopen) /* {{{ */
/* no need to check, include_path not even specified in fopen/ no active phars */
goto skip_phar;
}
- if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "ps|br", &filename, &filename_len, &mode, &mode_len, &use_include_path, &zcontext) == FAILURE) {
+ if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "ps|br!", &filename, &filename_len, &mode, &mode_len, &use_include_path, &zcontext) == FAILURE) {
goto skip_phar;
}
if (use_include_path || (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://"))) {