Skip to content

Commit 89dd7fb

Browse files
committed
Fixed bug #74596 (SIGSEGV with opcache.revalidate_path enabled)
Yeah, no test script is provided.. I got some troubles to make a one
1 parent 777929b commit 89dd7fb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ PHP NEWS
1313
. Fixed bug #74547 (mysqli::change_user() doesn't accept null as $database
1414
argument w/strict_types). (Anatol)
1515

16+
- Opcache:
17+
. Fixed bug #74596 (SIGSEGV with opcache.revalidate_path enabled). (Laruence)
18+
1619
- phar:
1720
. Fixed bug #51918 (Phar::webPhar() does not handle requests sent through PUT
1821
and DELETE method). (Christian Weiske)

ext/opcache/ZendAccelerator.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,10 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
17061706
return accelerator_orig_compile_file(file_handle, type);
17071707
}
17081708
persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length);
1709+
} else if (UNEXPECTED(is_stream_path(file_handle->filename) && !is_cacheable_stream_path(file_handle->filename))) {
1710+
return accelerator_orig_compile_file(file_handle, type);
17091711
}
1712+
17101713
if (!persistent_script) {
17111714
/* try to find cached script by full real path */
17121715
zend_accel_hash_entry *bucket;

0 commit comments

Comments
 (0)