We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8598e55 + 6649815 commit 38d6d85Copy full SHA for 38d6d85
ext/opcache/ZendAccelerator.c
@@ -4796,6 +4796,11 @@ static zend_result accel_finish_startup_preload(bool in_child)
4796
EG(class_table) = NULL;
4797
EG(function_table) = NULL;
4798
PG(report_memleaks) = orig_report_memleaks;
4799
+#ifdef ZTS
4800
+ /* Reset the virtual CWD state back to the original state created by virtual_cwd_startup().
4801
+ * This is necessary because the normal startup code assumes the CWD state is active. */
4802
+ virtual_cwd_activate();
4803
+#endif
4804
} else {
4805
zend_shared_alloc_unlock();
4806
ret = FAILURE;
0 commit comments