View Issue Details

IDProjectCategoryView StatusLast Update
0000324XdebugUncategorizedpublic2009-12-29 15:20
Reportere-novative Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000324: xdebug_dump_superglobals() only dumps superglobals that were accessed before
Description

It seems that xdebug_dump_superglobals() only dumps superglobals when they were accessed before, at least if you use ini_set to configure what to dump. In the attached script, HTTP_HOST is not dumped, but when you comment out the second line, is is dumped.

Additional Information

<?php

ini_set('xdebug.dump.SERVER', 'HTTP_HOST');
// $x = $_SERVER;
xdebug_dump_superglobals();

?>

TagsNo tags attached.
Operating SystemWin XP
PHP Version5.2.1

Relationships

has duplicate 0000478 resolvedderick XDebug 2.0.x can't use %R in xdebug.profiler_output_name if register_long_arrays is off 

Activities

derick

2007-10-27 17:24

administrator   ~0000767

I can not reproduce this with PHP 5.2.1 and Xdebug 2.0.1 - could you please try Xdebug 2.0.1, and if that does not work, could you please give me a link to your phpinfo() output?

derick

2007-11-01 21:09

administrator   ~0000796

Reminder sent to e-novative

I can not reproduce this with PHP 5.2.1 and Xdebug 2.0.1 - could you please try Xdebug 2.0.1, and if that does not work, could you please give me a link to your phpinfo() output?

derick

2007-11-11 17:40

administrator   ~0000804

Reminder sent to e-novative

I can not reproduce this with PHP 5.2.1 and Xdebug 2.0.2 - could you please try Xdebug 2.0.2, and if that does not work, could you please give me a link to your phpinfo() output?

This is the last such reminder, if I don't get feedback I will close the report.

rheotaxis

2008-10-13 23:31

reporter   ~0000884

I have reproduced the bug today 2008-10-13 with this installation info:

PHP 5.2.6 (cli) (built: Sep 15 2008 20:42:05)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans

rheotaxis

2008-10-13 23:35

reporter   ~0000885

// Here is the test.php script I'm using to reproduce this bug.
<html><body><?php
ini_set('display_errors', 'On');
ini_set('xdebug.dump.SERVER', 'HTTP_HOST, SERVER_NAME');
//$y = $_SERVER;

// next line causes error
$x = arrax;

?></body></html>

rheotaxis

2008-10-13 23:39

reporter   ~0000886

Here is my php.ini settings that reproduced this bug.

; xdebug support
zend_extension="/usr/lib/php/modules/xdebug.so"
xdebug.dump_undefined = On
xdebug.show_local_vars=On
xdebug.dump.SERVER=HTTP_HOST, SERVER_NAME
xdebug.dump_globals=On
xdebug.collect_params=4

I'm running Apache on CentOS with the following web stuff installed.

system-config-httpd.noarch 5:1.3.3.1-1.el5 installed
httpd.i386 2.2.3-11.el5_1.centos. installed
php.i386 5.2.6-2.el5s2 installed

derick

2008-11-03 09:55

administrator   ~0000895

This is because I need to move the JIT registration to RINIT.

derick

2009-12-29 15:20

administrator   ~0001228

Similar to 478 that I can also not reproduce. I did commit a possible fix for it though in revision 3175.

Issue History

Date Modified Username Field Change
2007-10-24 12:11 e-novative New Issue
2007-10-27 17:24 derick Xdebug Version 2.0.1-dev => 1.3.2
2007-10-27 17:24 derick Note Added: 0000767
2007-10-27 17:24 derick Status new => feedback
2007-11-01 21:09 derick Note Added: 0000796
2007-11-11 17:40 derick Note Added: 0000804
2008-10-13 23:31 rheotaxis Note Added: 0000884
2008-10-13 23:35 rheotaxis Note Added: 0000885
2008-10-13 23:39 rheotaxis Note Added: 0000886
2008-11-03 09:55 derick Note Added: 0000895
2009-12-29 15:18 derick Relationship added has duplicate 0000478
2009-12-29 15:20 derick Note Added: 0001228
2009-12-29 15:20 derick Status feedback => closed
2009-12-29 15:20 derick Resolution open => 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