Req #45867 [Opn->Bgs]: get_var_dump();
| From: | jani@php.net | Date: | Fri, 03 Dec 2010 16:56:25 +0000 |
| Subject: | Req #45867 [Opn->Bgs]: get_var_dump(); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156737@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=45867&edit=1
ID: 45867
Updated by: jani@php.net
Reported by: bholbrook at tech-monkeys dot org
Summary: get_var_dump();
-Status: Open
+Status: Bogus
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: any
PHP Version: 5.2.6
Block user comment: N
Private report: N
New Comment:
There is var_export() already.
Previous Comments:
------------------------------------------------------------------------
[2008-08-20 17:37:38] bholbrook at tech-monkeys dot org
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=45867&edit=1