Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
182
Reporter ?
hobodave
MacGDBp / 1.3.0
Status ?
Closed
Severity ?
Moderate
Fixed in Revision ?
Mstone ?
Summary ?
local variables uninitialized
Report Time ?
August 28, 2009 03:44 PM
Assignment ?
Resolution ?
Duplicate
Priority ?
Normal
Dependencies ?
- none -
Mstone (old) ?


Votes
For: 2 (100%)
Against: 0 (0%)
Total: 2

August 28, 2009 03:44 PM hobodave
Description:

All local variables are shown as uninitialized inside any function/class scope.

Code to reproduce:

<pre>
<code>
<?php
function foo() {
    $foo = 700;
    $bar = 18;
    return $foo * $bar;
}
$stuff = 10;
$baz = 400;
echo foo();
</code>
</pre>

Run from command line using php foo.php.

Expected:

I would expect to see bar and foo set to 18 and 700 respectively in the Variable viewer section of MacGDBp

Actual:

bar and foo are shown as uninitialized (http://localhostr.com/files/d1f354/Picture+3.png)

Environment Information:

PHP 5.3.0 (cli) (built: Jul 30 2009 21:01:44)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans

[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
SPL
SQLite
sqlite3
standard
syck
tokenizer
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

[Zend Modules]
Xdebug

[OS]
OS X 10.5.8
Darwin daves-macbookpro.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

August 28, 2009 03:45 PM hobodave
Forgot this:

MacGDBp Version 1.3.1 (34)

November 6, 2009 09:46 PM Nate
I'm seeing the same results: all local variables show up as uninitialized. I'm using PHP 5.3.0 that came with Snow Leopard, and Xdebug 2.0.5 that I *think* I built myself when Snow Leopard came out.

The relevant section of php.ini looks like this:

zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.show_local_vars = 1
xdebug.profiler_enable_trigger = 1

Notice that xdebug.show_local_vars is on (by default it was off). But that doesn't seem to fix the problem, so I guess it doesn't matter.

Environment: MacGDBp 1.3.1 (34) / PHP 5.3.0 / Xdebug 2.0.5 / MacBookPro4,1 with 4 GB RAM / OS X 10.6.1

February 17, 2010 01:53 PM Robert
Please see bug 188. This is an issue with PHP 5.3 and Xdebug 2.0.5. Try the latest beta of Xdebug.

On February 17, 2010 01:53 PM, Robert changed: