View Issue Details

IDProjectCategoryView StatusLast Update
0000827XdebugUncategorizedpublic2012-05-07 12:46
Reporterzoes Assigned To 
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"]=>