summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-15 22:30:12 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-15 22:30:12 +0200
commitd25f3819c70888d791eb8031e5049d0791c1b040 (patch)
tree5dacabc553a7dfcdf276e3343df0ce663901633f /sapi/phpdbg/phpdbg.c
parent73773c2175c88a3171236fc0ffce85b0efcd65fa (diff)
downloadphp-git-d25f3819c70888d791eb8031e5049d0791c1b040.tar.gz
Fix crash on non-debug for phpdbg_end_oplog()
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 3ee0bde97f..48ac68c7f4 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -111,6 +111,8 @@ static inline void php_phpdbg_globals_ctor(zend_phpdbg_globals *pg) /* {{{ */
pg->sigsafe_mem.mem = NULL;
pg->sigsegv_bailout = NULL;
+ pg->oplog_list = NULL;
+
#ifdef PHP_WIN32
pg->sigio_watcher_thread = INVALID_HANDLE_VALUE;
memset(&pg->swd, 0, sizeof(struct win32_sigio_watcher_data));