View Issue Details

IDProjectCategoryView StatusLast Update
0000552XdebugUsage problems (Wrong Results)public2010-07-13 09:24
ReporterTothAmonAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0000552: xdebug.dump.SERVER not dumping if no accessed before
DescriptionPLEASE NOTICE THAT PHP VER is 5.2.11 (which is not available to select)
I put it into "Additional Informations"

if $_SERVER variable is not accessed in php script,
then no dump is made

to reproduce it simply run script:
<?php
  array_filter(''); // will produce warning
?>
no $_SERVER['REQUEST_URI'] is dumped

now try this:
<?php
  var_dump($_SERVER);
  array_filter('');
?>
here $_SERVER['REQUEST_URI'] is dumped
Additional Information$ lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: Final

$ php -i
phpinfo()
PHP Version => 5.2.11
[...]

$ cat /etc/php.d/xdebug.ini
; Enable xdebug extension module
zend_extension=/usr/lib64/php/modules/xdebug.so

xdebug.collect_vars=on
xdebug.collect_params=4
xdebug.collect_return=true
xdebug.dump.SERVER=REQUEST_URI
xdebug.show_local_vars=on

xdebug.var_display_max_depth=16
TagsSERVER, xdebug.dump, xdebug.dump.SERVER
Operating SystemCentOS release 5.4 (Final)
PHP Version5.2.10

Activities

derick

2010-04-20 13:59

administrator   ~0001453

Could you please try the SVN version: http://xdebug.org/docs/install#source

derick

2010-07-08 10:22

administrator   ~0001524

Could you please try the SVN version: http://xdebug.org/docs/install#source

TothAmon

2010-07-09 08:30

reporter   ~0001525

it's up to the server administrator ;/
and he's not goin to install svn trunk
he restrict himself to CentOS packages only

i will try do give some response when possible

derick

2010-07-09 17:14

administrator   ~0001526

Well, by now 2.1.0 is out; so you could try that.

TothAmon

2010-07-13 09:18

reporter   ~0001530

Hi again :)

problem is gone with php version 5.2.13 and Xdebug 2.1.0

thanks for a great job here :)

Issue History

Date Modified Username Field Change
2010-03-25 09:30 TothAmon New Issue
2010-03-25 09:30 TothAmon Operating System => CentOS release 5.4 (Final)
2010-03-25 09:30 TothAmon PHP Version => 5.2.10
2010-03-25 09:30 TothAmon Xdebug Version => 2.0.5
2010-03-25 09:32 TothAmon Tag Attached: SERVER
2010-03-25 09:32 TothAmon Tag Attached: xdebug.dump
2010-03-25 09:32 TothAmon Tag Attached: xdebug.dump.SERVER
2010-04-20 13:59 derick Note Added: 0001453
2010-04-20 13:59 derick Status new => feedback
2010-07-08 10:22 derick Note Added: 0001524
2010-07-09 08:30 TothAmon Note Added: 0001525
2010-07-09 17:14 derick Note Added: 0001526
2010-07-13 09:18 TothAmon Note Added: 0001530
2010-07-13 09:24 derick Status feedback => resolved
2010-07-13 09:24 derick Resolution open => no change required
2010-07-13 09:24 derick Assigned To => derick
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)