[xdebug-dev] xdebug xdebug/xdebug.c - Fixed bug #74: Segfault with autoload.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 13 Jul 2004 12:02:40 +0200

Date: Tue Jul 13 12:02:39 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Fixed bug #74: Segfault with autoload.
#- Already fixed in revision 1.191 for HEAD

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

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.157.2.9
retrieving revision 1.157.2.10
diff -u -r1.157.2.9 -r1.157.2.10
--- xdebug/xdebug.c:1.157.2.9 Sun Apr 18 10:31:35 2004 GMT
+++ xdebug/xdebug.c Tue Jul 13 08:02:39 2004 GMT
@@ -533,7 +533,9 @@
 #else
                         if (edata->object) {
                                 tmp->type = XFUNC_MEMBER;
- tmp->class = xdstrdup(edata->function_state.function->common.scope->name);
+ if (edata->function_state.function->common.scope) { /* __autoload has no scope */
+ tmp->class = xdstrdup(edata->function_state.function->common.scope->name);
+ }
                         } else if (EG(scope) && edata->function_state.function->common.scope && edata->function_state.function->common.scope->name) {
                                 tmp->type = XFUNC_STATIC_MEMBER;
                                 tmp->class = xdstrdup(edata->function_state.function->common.scope->name);
Received on Tue Jul 13 2004 - 12:02:46 BST

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