Skip to content

Commit 1ea1f3d

Browse files
committed
Stop calling zend_error() during RSHUTDOWN
1 parent 3bb3b35 commit 1ea1f3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

memprof.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,9 @@ static void memprof_disable()
787787
allocs_set = (Pvoid_t) NULL;
788788

789789
if (!memprof_dumped) {
790-
zend_error(E_WARNING, "Memprof profiling was enabled, but no profile was dumped. Did you forget to call one of memprof_dump_callgrind(), memprof_dump_pprof(), or memprof_dump_array() ?");
790+
// Calling this during RSHUTDOWN breaks zend_deactivate_modules(), which
791+
// causes corruption of global state.
792+
// zend_error(E_WARNING, "Memprof profiling was enabled, but no profile was dumped. Did you forget to call one of memprof_dump_callgrind(), memprof_dump_pprof(), or memprof_dump_array() ?");
791793
}
792794
}
793795

0 commit comments

Comments
 (0)