|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-03 17:56 UTC] jani@php.net
-Status: Open
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-12-03 17:56 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 06:00:02 2025 UTC |
Description: ------------ Add function get_var_dump() to relieve the inconveniences associated with var_dump() automatically outputting. Reproduce code: --------------- //for expected result $getDump = get_var_dump($_GET); mail("to@me.com", "GET dump from domain@domain.com", $getDump); header("content-type:{$_GET['type']}"); //for actual result var_dump($_GET); header("content-type:{$_GET['type']}"); //can be emulated with, but cumbersome, and not always enabled on remote hosts ob_start(); var_dump($_GET); $getDump = ob_get_contents(); ob_end_clean(); mail("to@me.com", "GET dump from domain@domain.com", $getDump); header("content-type:{$_GET['type']}"); Expected result: ---------------- 1) No error. 2) Ability to send / manipulate (convert to json for ajax apps) var dump data outside of php Actual result: -------------- 1) Header fails 2) var_dump must be seen as processed by tester and cannot be collected in a beta environment.