View Issue Details

IDProjectCategoryView StatusLast Update
0000827XdebugUncategorizedpublic2012-05-07 12:46
Reporterzoes Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformMacOSOSX or LinuxOS Versionany
Product Version2.2.0RC1 
Target Version2.2.0Fixed in Version2.2.0 
Summary0000827: Enabling Xdebug causes phpt tests to fail because of var_dump() formatting issues
Description

I think this is also related to 0000823.

I have xdebug enabled using the following line in php.ini:

zend_extension="/Users/zoe/Applications/XDEBUG/xdebug-2.2.0RC1/modules/xdebug.so";

A group of the CGI tests fail when I run them. I'm not sure why just CGI tests, other tests depend on var_dump() output.

Steps To Reproduce

To reproduce run this script (modifying paths where necessary):

export TEST_PHP_EXECUTABLE=/path-to-php/php
export TEST_PHP_CGI_EXECUTABLE=/path-to-cgi/php-cgi
$TEST_PHP_EXECUTABLE /path-to-runtests/run-tests.php /path-to-runtests/tests/basic/023.phpt

Both with and without xdebug enabled. The test will pass without xdebug and fail with it.

TagsNo tags attached.
Operating System
PHP Version5.4.0

Activities

derick

2012-05-06 11:44

administrator   ~0002135

Can you add how a specific test case fails please?

zoes

2012-05-06 16:51

reporter   ~0002136

Here is the diff from tests/basic/023.phpt

002+ 'c_o_o_k_i_e' =>
002- ["c_o_o_k_i_e"]=>
004+ 'name' =>
004- ["name"]=>
006+ 'UEhQIQ' =>
006- ["UEhQIQ"]=>

Issue History

Date Modified Username Field Change
2012-05-03 12:36 zoes New Issue
2012-05-05 14:06 derick Target Version => 2.2.0
2012-05-06 11:44 derick Note Added: 0002135
2012-05-06 11:44 derick Assigned To => derick
2012-05-06 11:44 derick Status new => feedback
2012-05-06 16:51 zoes Note Added: 0002136
2012-05-06 16:51 zoes Status feedback => assigned
2012-05-07 12:46 derick Status assigned => closed
2012-05-07 12:46 derick Resolution open => fixed
2012-05-07 12:46 derick Fixed in Version => 2.2.0
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