View Issue Details

IDProjectCategoryView StatusLast Update
0000469XdebugUncategorizedpublic2009-10-05 00:50
Reporterdredies Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0.0dev 
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)
Description

Just 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-06 23:01

administrator   ~0001064

This has been fixed in the CVS version already.

dredies

2009-09-09 09: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 10:48

administrator   ~0001067

Can you please then provide:

StephenKing

2009-09-11 14:00

reporter   ~0001068

Last edited: 2009-09-11 14: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 17:44

reporter   ~0001070

Last edited: 2009-09-12 17: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 20:42

reporter   ~0001072

Any solutions for this issue?

otto

2009-09-18 23:11

reporter   ~0001076

Last edited: 2009-09-18 23: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 07:47

reporter   ~0001077

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

tanob

2009-10-03 02: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 00:50

administrator   ~0001081

This is now fixed in CVS (HEAD only).

Issue History

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