com php-src: Fix crash on non-debug for phpdbg_end_oplog( ): sapi/phpdbg/phpdbg.c
| From: | Bob Weinand | Date: | Wed, 15 Jul 2015 20:30:12 +0000 |
| Subject: | com php-src: Fix crash on non-debug for phpdbg_end_oplog( ): sapi/phpdbg/phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87997@lists.php.net to get a copy of this message | ||
Commit: d25f3819c70888d791eb8031e5049d0791c1b040
Author: Bob Weinand <bobwei9@hotmail.com> Wed, 15 Jul 2015 22:30:12 +0200
Parents: 73773c2175c88a3171236fc0ffce85b0efcd65fa
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d25f3819c70888d791eb8031e5049d0791c1b040
Log:
Fix crash on non-debug for phpdbg_end_oplog()
Changed paths:
M sapi/phpdbg/phpdbg.c
Diff:
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 3ee0bde..48ac68c 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));