Bug #11798 Updated: "svar_dump()" wanted
| From: | jimw@php.net | Date: | Sat, 27 Apr 2002 19:35:51 +0000 |
| Subject: | Bug #11798 Updated: "svar_dump()" wanted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6286@lists.php.net to get a copy of this message | ||
ID: 11798
Updated by: jimw@php.net
Reported By: oyvindmo@initio.no
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: any
-PHP Version: 4.0 Latest CVS (2001-06-29)
+PHP Version: 4.0 Latest CVS (
New Comment:
use output buffering.
Previous Comments:
------------------------------------------------------------------------
[2001-12-11 16:19:30] derick@php.net
var_export does not do this, it merely has a different format then
var_dump, so that it is correct PHP code.
Derick
------------------------------------------------------------------------
[2001-12-09 07:33:44] sander@php.net
Derick just added a new function called var_export which does exactly
what you want. It will be in PHP-4.2.0.
------------------------------------------------------------------------
[2001-06-29 05:54:42] oyvindmo@initio.no
It would be very nice to have a var_dump() that returns the variable
dump as a string instead of printing it. Using var_dump() for verbose
logging is mighty handy, but having to (ab)use output buffering to
catch the var dump feels bad.
(I looked briefly at the implementation of var_dump(), and making a
"svar_dump()" seemed out of my C league, unfortunately.)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11798&edit=1