Skip to content

Commit 008fb28

Browse files
committed
fix crash in phpdbg shutdown process when opcache is loaded
1 parent bbfa1b6 commit 008fb28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
228228
zend_hash_destroy(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD]);
229229
zend_hash_destroy(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]);
230230
zend_hash_destroy(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP]);
231-
zend_hash_destroy(&PHPDBG_G(file_sources));
232231
zend_hash_destroy(&PHPDBG_G(seek));
233232
zend_hash_destroy(&PHPDBG_G(registered));
234233
zend_hash_destroy(&PHPDBG_G(watchpoints));
@@ -2137,6 +2136,8 @@ int main(int argc, char **argv) /* {{{ */
21372136
wrapper->wops->stream_opener = PHPDBG_G(orig_url_wrap_php);
21382137
}
21392138

2139+
zend_hash_destroy(&PHPDBG_G(file_sources));
2140+
21402141
zend_try {
21412142
php_module_shutdown();
21422143
} zend_end_try();

0 commit comments

Comments
 (0)