summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_watch.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-08-11 16:33:47 +0300
committerDmitry Stogov <dmitry@zend.com>2015-08-11 16:33:47 +0300
commit162bf9e802b3d5aec43b6cdcb6ea87169923076a (patch)
tree4a0a35e35a3047423cb332f0b6c86f4e26b0ef8e /sapi/phpdbg/phpdbg_watch.c
parent7eb6bd1311a815ec23eb7cf06f6214f4a2d5895a (diff)
downloadphp-git-162bf9e802b3d5aec43b6cdcb6ea87169923076a.tar.gz
Reimplemented ability to get debug info (C source file and line number) in phpdbg without hacks and ABI breaks.
Diffstat (limited to 'sapi/phpdbg/phpdbg_watch.c')
-rw-r--r--sapi/phpdbg/phpdbg_watch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_watch.c b/sapi/phpdbg/phpdbg_watch.c
index 15ae97da3a..c3fcb769a4 100644
--- a/sapi/phpdbg/phpdbg_watch.c
+++ b/sapi/phpdbg/phpdbg_watch.c
@@ -1133,5 +1133,7 @@ void phpdbg_watch_efree(void *ptr) {
}
}
- PHPDBG_G(original_free_function)(ptr);
+ if (PHPDBG_G(original_free_function)) {
+ PHPDBG_G(original_free_function)(ptr);
+ }
}