mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
Move checks after zpp in opcache_is_script_cached()
This commit is contained in:
@@ -909,6 +909,10 @@ ZEND_FUNCTION(opcache_is_script_cached)
|
||||
{
|
||||
zend_string *script_name;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &script_name) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (!validate_api_restriction()) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@@ -917,9 +921,5 @@ ZEND_FUNCTION(opcache_is_script_cached)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &script_name) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
RETURN_BOOL(filename_is_in_cache(script_name));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user