]> granicus.if.org Git - php/commitdiff
Switch to new ZPP
authorDmitry Stogov <dmitry@zend.com>
Wed, 3 Mar 2021 23:11:21 +0000 (02:11 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 3 Mar 2021 23:11:21 +0000 (02:11 +0300)
ext/opcache/zend_accelerator_module.c

index cdb63f7b88f3d2298af40e9ea7220f4e755f4741..a3c7bd7a149c78bedc556788a624f148f100e8bf 100644 (file)
@@ -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;