MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000180XdebugUsage problems (Wrong Results)public2006-05-07 03:042006-05-07 18:20
Reporterjudas_iscariote 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000180: collected includes not shown in trace files
DescriptionFor 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 Informationthis 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
Attached Files

- Relationships

-  Notes
(0000396)
judas_iscariote (reporter)
2006-05-07 03:30

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) {
(0000397)
judas_iscariote (reporter)
2006-05-07 03:35

of course this is because in current PHP CVS version is 5.2.0-dev
so PHP_MINOR_VERSION is > 1 ;)
(0000398)
judas_iscariote (reporter)
2006-05-07 03:47

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;
(0000399)
derick (administrator)
2006-05-07 18:20

Fixed in CVS, thanks for the patch!

- Issue History
Date Modified Username Field Change
2006-05-07 03:04 judas_iscariote New Issue
2006-05-07 03:30 judas_iscariote Note Added: 0000396
2006-05-07 03:35 judas_iscariote Note Added: 0000397
2006-05-07 03:47 judas_iscariote Note Added: 0000398
2006-05-07 18:20 derick Status new => closed
2006-05-07 18:20 derick Note Added: 0000399
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker