Bug #60358 [Fbk]: Output of var_dump() has changed
| From: | derick@php.net | Date: | Tue, 22 Nov 2011 11:21:09 +0000 |
| Subject: | Bug #60358 [Fbk]: Output of var_dump() has changed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165424@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60358&edit=1
ID: 60358
Updated by: derick@php.net
Reported by: mapi at pdepend dot org
Summary: Output of var_dump() has changed
Status: Feedback
Type: Bug
Package: Variables related
Operating System: Ubuntu 11.10
PHP Version: 5.4.0RC1
Block user comment: N
Private report: N
New Comment:
It's likely that this is Xdebug. Could you confirm?
Previous Comments:
------------------------------------------------------------------------
[2011-11-22 11:04:56] laruence@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