Bug #17874 Updated: var_export prints to screen

From: Date: Thu, 20 Jun 2002 16:12:33 +0000
Subject: Bug #17874 Updated: var_export prints to screen
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11577@lists.php.net to get a copy of this message
ID: 17874 Updated by: sander@php.net Reported By: che@atlantic.net -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows 2000 PHP Version: 4.2.0 New Comment: Not a b. var_export() dies in recursive arrays. var_export() uses output buffering internally to deal with the second parameter. The (internal) ob_end_clean() call will never make it because PHP dies before it reaches that point and then it just outputs all buffers. Previous Comments: ------------------------------------------------------------------------ [2002-06-20 12:02:27] che@atlantic.net This is because GLOBALS is recursively linked to itself and it is causing var_export to die. ------------------------------------------------------------------------ [2002-06-20 11:47:02] che@atlantic.net The code below outputs to the screen. (Even with output buffering) ob_start(); $v = var_export($GLOBALS, TRUE); ob_end_clean(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17874&edit=1

« previous php.bugs (#11577) next »