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