Edit report at https://bugs.php.net/bug.php?id=60358&edit=1

 ID:                 60358
 Updated by:         fel...@php.net
 Reported by:        mapi at pdepend dot org
 Summary:            Output of var_dump() has changed
-Status:             Closed
+Status:             Bogus
 Type:               Bug
 Package:            Variables related
 Operating System:   Ubuntu 11.10
 PHP Version:        5.4.0RC1
 Block user comment: N
 Private report:     N

 New Comment:

.


Previous Comments:
------------------------------------------------------------------------
[2011-11-22 13:22:06] mapi at pdepend dot org

@laruence
Sorry may fault. As @derick said, this is an xdebug related issue. When I 
disable 
the xdebug extension the output of PHP 5.3 and PHP 5.4 is equal.

------------------------------------------------------------------------
[2011-11-22 13:21:03] mapi at pdepend dot org

This output change only appears when xdebug is enabled.

------------------------------------------------------------------------
[2011-11-22 11:21:09] der...@php.net

It's likely that this is Xdebug. Could you confirm?

------------------------------------------------------------------------
[2011-11-22 11:04:56] larue...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I can not reproduce this with 5.4-trunk.

------------------------------------------------------------------------
[2011-11-22 09:41:41] mapi at pdepend dot org

Description:
------------
Maybe it's not a bug, but a behavior change. With all PHP versions prior to 
5.4.0 
the output of var_dump() for a simple string was enclosed by double quotes. 
With 
5.4.0 this has changed and the string is now enclosed by single quotes, except 
the string already contains a single quote

Test script:
---------------
php -r 'var_dump("Manuel");'

Expected result:
----------------
string(6) "Manuel"

Actual result:
--------------
string(6) 'Manuel'


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60358&edit=1

Reply via email to