summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2021-03-04 02:11:21 +0300
committerDmitry Stogov <dmitry@zend.com>2021-03-04 02:11:21 +0300
commit4b59071844d4749e05a73d3d21527c7875e831f8 (patch)
tree999b8ee40cb08e299167835207bcf660e5f01a9b /ext/opcache
parentdd3bfb3704edb71ce83500720691f552e24cb425 (diff)
downloadphp-git-4b59071844d4749e05a73d3d21527c7875e831f8.tar.gz
Switch to new ZPP
Diffstat (limited to 'ext/opcache')
-rw-r--r--ext/opcache/zend_accelerator_module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c
index cdb63f7b88..a3c7bd7a14 100644
--- a/ext/opcache/zend_accelerator_module.c
+++ b/ext/opcache/zend_accelerator_module.c
@@ -910,9 +910,9 @@ ZEND_FUNCTION(opcache_is_script_cached)
{
zend_string *script_name;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &script_name) == FAILURE) {
- RETURN_THROWS();
- }
+ ZEND_PARSE_PARAMETERS_START(1, 1)
+ Z_PARAM_STR(script_name)
+ ZEND_PARSE_PARAMETERS_END();
if (!validate_api_restriction()) {
RETURN_FALSE;