Skip to content

Commit 03fc3d8

Browse files
committed
Allow opcache_compile_file() to perform compilation even if opcache is disabled.
1 parent cd9f0a2 commit 03fc3d8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -805,11 +805,6 @@ static ZEND_FUNCTION(opcache_compile_file)
805805
return;
806806
}
807807

808-
if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) {
809-
zend_error(E_NOTICE, ACCELERATOR_PRODUCT_NAME " seems to be disabled, can't compile file");
810-
RETURN_FALSE;
811-
}
812-
813808
handle.filename = script_name;
814809
handle.free_filename = 0;
815810
handle.opened_path = NULL;

0 commit comments

Comments
 (0)