#45867 [NEW]: get_var_dump();

[email protected] ("bholbrook at tech-monkeys dot org")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             bholbrook at tech-monkeys dot org
Operating system: any
PHP version:      5.2.6
PHP Bug Type:     Feature/Change Request
Bug description:  get_var_dump();

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("[email protected]", "GET dump from [email protected]", $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("[email protected]", "GET dump from [email protected]", $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 bug report at http://bugs.php.net/?id=45867&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45867&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45867&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45867&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45867&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=45867&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45867&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45867&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45867&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45867&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45867&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=45867&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=45867&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45867&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45867&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45867&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45867&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45867&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45867&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45867&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45867&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.