View Issue Details

IDProjectCategoryView StatusLast Update
0000180XdebugUncategorizedpublic2006-05-07 17:20
Reporterjudas_iscariote Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Summary0000180: collected includes not shown in trace files
Description

For some reason I can't figure , xdebug trace files, contained the value of the included/required files and worked OK. but at some point between 5.1.2 and 5.1.4 development it stopped working and now it just mention include/required but not what file was included.

i.e

in the past traces looked like :

require_once('/path/to/included/file') /srv/www/htdocs/foo.php:10

but now it just shows

require_once() /srv/www/htdocs/foo.php:10

Additional Information

this happends using default xdebug settings plus

xdebug.auto_trace On
xdebug.collect_params On
xdebug.collect_return On

Derick : sorry If Im missing something

TagsNo tags attached.
Operating SystemLinux 64 bit
PHP Version5.1-dev

Activities

judas_iscariote

2006-05-07 02:30

reporter   ~0000396

gotcha :)

here is the patch ;)

--- xdebug.c 14 Apr 2006 10:07:07 -0000 1.310
+++ xdebug.c 7 May 2006 01:29:36 -0000
@@ -979,7 +979,7 @@
tmp->lineno = cur_opcode->lineno;

#if (PHP_MAJOR_VERSION == 6) || \

  • (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 1) || \
  • (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1) || \
    (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 0 && PHP_RELEASE_VERSION > 5) || \
    (PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 4 && PHP_RELEASE_VERSION > 0)
    if (tmp->function.type == XFUNC_EVAL) {

judas_iscariote

2006-05-07 02:35

reporter   ~0000397

of course this is because in current PHP CVS version is 5.2.0-dev
so PHP_MINOR_VERSION is > 1 ;)

judas_iscariote

2006-05-07 02:47

reporter   ~0000398

ok.seems this is much better right ?

--- xdebug.c 14 Apr 2006 10:07:07 -0000 1.310
+++ xdebug.c 7 May 2006 01:45:57 -0000
@@ -979,7 +979,7 @@
tmp->lineno = cur_opcode->lineno;

#if (PHP_MAJOR_VERSION == 6) || \

  • (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 1) || \
  • (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1) || \
    (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 0 && PHP_RELEASE_VERSION > 5) || \
    (PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 4 && PHP_RELEASE_VERSION > 0)
    if (tmp->function.type == XFUNC_EVAL) {
    @@ -2503,7 +2503,7 @@
    #endif
    break;

-#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 1) || (PHP_MAJOR_VERSION >= 6)
+#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1) || (PHP_MAJOR_VERSION >= 6)
case IS_CV:
return *zend_get_compiled_variable_value(zdata, node->u.constant.value.lval);
break;

derick

2006-05-07 17:20

administrator   ~0000399

Fixed in CVS, thanks for the patch!

Issue History

Date Modified Username Field Change
2006-05-07 02:04 judas_iscariote New Issue
2006-05-07 02:30 judas_iscariote Note Added: 0000396
2006-05-07 02:35 judas_iscariote Note Added: 0000397
2006-05-07 02:47 judas_iscariote Note Added: 0000398
2006-05-07 17:20 derick Status new => closed
2006-05-07 17:20 derick Note Added: 0000399
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized