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

 ID:                 45867
 Updated by:         j...@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("t...@me.com", "GET dump from dom...@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("t...@me.com", "GET dump from dom...@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

Reply via email to