Skip to content

Commit 809616c

Browse files
committed
Temporary fix for SIGFPE
1 parent 3abde43 commit 809616c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ void zend_accel_override_file_functions(void)
394394
{
395395
zend_function *old_function;
396396
if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) {
397+
if (ZCG(accel_directives).file_cache_only) {
398+
zend_accel_error(ACCEL_LOG_WARNING, "file_override_enabled has no effect when file_cache_only is set");
399+
return;
400+
}
397401
/* override file_exists */
398402
if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists")-1)) != NULL) {
399403
orig_file_exists = old_function->internal_function.handler;

0 commit comments

Comments
 (0)