We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37fe68 commit ac7e967Copy full SHA for ac7e967
ext/opcache/zend_accelerator_module.c
@@ -332,15 +332,14 @@ static int filename_is_in_cache(zend_string *filename)
332
333
static int accel_file_in_cache(INTERNAL_FUNCTION_PARAMETERS)
334
{
335
- zval zfilename;
+ if (ZEND_NUM_ARGS() == 1) {
336
+ zval *zv = ZEND_CALL_ARG(execute_data , 1);
337
- if (ZEND_NUM_ARGS() != 1 ||
338
- zend_get_parameters_array_ex(1, &zfilename) == FAILURE ||
339
- Z_TYPE(zfilename) != IS_STRING ||
340
- Z_STRLEN(zfilename) == 0) {
341
- return 0;
+ if (Z_TYPE_P(zv) == IS_STRING && Z_STRLEN_P(zv) != 0) {
+ return filename_is_in_cache(Z_STR_P(zv));
+ }
342
}
343
- return filename_is_in_cache(Z_STR(zfilename));
+ return 0;
344
345
346
static ZEND_NAMED_FUNCTION(accel_file_exists)
0 commit comments