[xdebug-dev] xdebug xdebug/xdebug.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 9 Mar 2005 22:18:11 +0100

Date: Wed Mar 9 22:18:11 CET 2005
User: Derick Rethans
Directory: xdebug

Log Message:
- Fixed bug #118: Segfault with exception when remote debugging.

Modified files:
           xdebug/xdebug.c (version: 1.257)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -r1.256 -r1.257
--- xdebug/xdebug.c:1.256 Sun Mar 06 20:55:31 2005 GMT
+++ xdebug/xdebug.c Wed Mar 09 20:18:11 2005 GMT
@@ -1542,6 +1542,10 @@
 #ifdef ZEND_ENGINE_2
 void xdebug_throw_exception_hook(zval *exception TSRMLS_DC)
 {
+ if (!exception) {
+ return;
+ }
+
         /* Start JIT if requested and not yet enabled */
         if (XG(remote_enable) && (XG(remote_mode) == XDEBUG_JIT) && !XG(remote_enabled)) {
                 XG(context).socket = xdebug_create_socket(XG(remote_host), XG(remote_port));
Received on Wed Mar 09 2005 - 22:18:33 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST