Skip to content

Commit e04b91e

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed bug #74596 (SIGSEGV with opcache.revalidate_path enabled)
2 parents 8ec9108 + 89dd7fb commit e04b91e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,10 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
17121712
return accelerator_orig_compile_file(file_handle, type);
17131713
}
17141714
persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length);
1715+
} else if (UNEXPECTED(is_stream_path(file_handle->filename) && !is_cacheable_stream_path(file_handle->filename))) {
1716+
return accelerator_orig_compile_file(file_handle, type);
17151717
}
1718+
17161719
if (!persistent_script) {
17171720
/* try to find cached script by full real path */
17181721
zend_accel_hash_entry *bucket;

0 commit comments

Comments
 (0)