View Issue Details

IDProjectCategoryView StatusLast Update
0000469XdebugUsage problems (Wrong Results)public2009-10-05 01:50
ReporterdrediesAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0.0dev 
Target VersionFixed in Version 
Summary0000469: xdebug 2.0.5 with php 5.3 - context_get for function variables always appear as "unitialized" - Mac OS X 10.6 (Snow Leopard)
DescriptionJust upgraded to Mac OS X 10.6 (Snow Leopard) and now when I try to debug a php page the variables always appear as "unitialized" once you step into a function.
TagsNo tags attached.
Operating SystemMac OS X 10.6 (Snow Leopard)
PHP Version5.3.0

Activities

derick

2009-09-07 00:01

administrator   ~0001064

This has been fixed in the CVS version already.

dredies

2009-09-09 10:00

reporter   ~0001066

Now you don't see this problem in functions anymore, but now you see this problem if you assign values to variables in an external file, then include that file and the variables defined in the external file will now show as "unitialized"

derick

2009-09-09 11:48

administrator   ~0001067

Can you please then provide:

- a minimal code example (2/3 files with minimal content)
- an xdebug remote log for a debugging session where this issue occurs (for
  information on how to do this: http://xdebug.org/docs/all_settings#remote_log

StephenKing

2009-09-11 15:00

reporter   ~0001068

Last edited: 2009-09-11 15:01

I also have this problem with OS X 10.5, PHP 5.3.0 and Komodo 5.2 beta.

Although I've just checked out from CVS, the problem persists in this bug's initial manner.

The following code results in "uninitialized" $x and $y INSIDE the function:

<?php

function foo() {
    $x = 1;
    $y = 2;
}

foo();

?>

xdebug-log:
http://pastebin.com/m35d50c54


P.S: It would be really nice to have permissions to attach files here :-P

cesaric

2009-09-12 18:44

reporter   ~0001070

Last edited: 2009-09-12 18:55

Confirming the problem with OS X 10.6, Apache 2.2.11, PHP 5.3. The variables pane in Eclipse always shows as uninitialized but if explicitly create a "watch expression", I can see the values. Here's a screen shot: http://cesaric.com/wp-content/uploads/2009/09/xdebug.jpg

I compiled 2.0.5 from CVS with same results. Also tried 2.1 and had other errors (child count error...) in addition to still not seeing the variables.

Any suggestions? Tried changing around settings like xdebug.show_local_vars with no luck. Also, have the exact same Apache/xdebug/php version on Windows XP and works just fine.

htaufik

2009-09-13 21:42

reporter   ~0001072

Any solutions for this issue?

otto

2009-09-19 00:11

reporter   ~0001076

Last edited: 2009-09-19 00:11

Same problem here with NetBeans (6.7.1 and nightly from 20090915) and Komodo 5.2.0 on Snow Leopard with default php 5.3.0 and xdebug 2.0.5.

I used StephenKing's code and have put up a remote log here: http://pastebin.com/m71988e29

otto

2009-09-25 08:47

reporter   ~0001077

I've now tried with 2_0 cvs and the issue remains.

tanob

2009-10-03 03:06

reporter   ~0001079

I can also confirm this problem, at least on Snow Leopard, with PHP 5.3.0 and XDebug 2.0.5.

Notice that if you add a watch expression that evals the variable content, you can see its value.

derick

2009-10-05 01:50

administrator   ~0001081

This is now fixed in CVS (HEAD only).

Issue History

Date Modified Username Field Change
2009-09-05 00:56 dredies New Issue
2009-09-05 00:56 dredies Operating System => Mac OS X 10.6 (Snow Leopard)
2009-09-05 00:56 dredies PHP Version => 5.3.0
2009-09-05 00:56 dredies Xdebug Version => 2.0.5
2009-09-07 00:01 derick Note Added: 0001064
2009-09-07 00:01 derick Status new => closed
2009-09-07 00:01 derick Resolution open => fixed
2009-09-09 10:00 dredies Note Added: 0001066
2009-09-09 10:00 dredies Status closed => feedback
2009-09-09 10:00 dredies Resolution fixed => reopened
2009-09-09 11:48 derick Note Added: 0001067
2009-09-11 15:00 StephenKing Note Added: 0001068
2009-09-11 15:01 StephenKing Note Edited: 0001068
2009-09-12 18:44 cesaric Note Added: 0001070
2009-09-12 18:55 cesaric Note Edited: 0001070
2009-09-13 21:42 htaufik Note Added: 0001072
2009-09-19 00:11 otto Note Added: 0001076
2009-09-19 00:11 otto Note Edited: 0001076
2009-09-25 08:47 otto Note Added: 0001077
2009-10-03 03:06 tanob Note Added: 0001079
2009-10-05 01:50 derick Note Added: 0001081
2009-10-05 01:50 derick Status feedback => closed
2009-10-05 01:50 derick Resolution reopened => fixed
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)