Skip to content

Commit aaa7c88

Browse files
committed
opcache: Reset accel_startup_ok after shutting down
This is necessary for phpdbg, which runs multiple startup/shutdown cycles in the same process.
1 parent 02b9455 commit aaa7c88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,8 @@ void accel_shutdown(void)
35093509
if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")-1)) != NULL) {
35103510
ini_entry->on_modify = orig_include_path_on_modify;
35113511
}
3512+
3513+
accel_startup_ok = false;
35123514
}
35133515

35143516
void zend_accel_schedule_restart(zend_accel_restart_reason reason)

0 commit comments

Comments
 (0)