Skip to content

Commit e9605e7

Browse files
committed
Merge branch 'opcache/opcache_is_script_cached_file' of https://github.com/iamacarpet/php-src into opcache/opcache_is_script_cached_file
2 parents f9c05a1 + 9346db9 commit e9605e7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,27 +368,21 @@ static int filename_is_in_cache(zend_string *filename)
368368

369369
static int filename_is_in_file_cache(zend_string *filename)
370370
{
371-
zend_string *realpath;
372-
373-
realpath = zend_resolve_path(filename);
374-
371+
zend_string *realpath = zend_resolve_path(filename);
375372
if (!realpath) {
376373
return 0;
377374
}
378375

379376
zend_file_handle handle;
380-
381377
zend_stream_init_filename_ex(&handle, filename);
382378
handle.opened_path = realpath;
383379

384380
zend_persistent_script *result = zend_file_cache_script_load_ex(&handle, true);
385-
386381
zend_destroy_file_handle(&handle);
387382

388383
return result != NULL;
389384
}
390385

391-
392386
static int accel_file_in_cache(INTERNAL_FUNCTION_PARAMETERS)
393387
{
394388
if (ZEND_NUM_ARGS() == 1) {

0 commit comments

Comments
 (0)