#25158 [NEW]: Var_Dump raise a warning if found a resource

From: Date: Tue, 19 Aug 2003 21:48:22 +0000
Subject: #25158 [NEW]: Var_Dump raise a warning if found a resource
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20106@lists.php.net to get a copy of this message
From: maka3d at yahoo dot com dot br Operating system: WIN XP PHP version: 4.3.2 PHP Bug Type: PEAR related Bug description: Var_Dump raise a warning if found a resource Description: ------------ Var_Dump raise a warning at line 750 of var_dump.php file if the display function found a resource using VAR_DUMP_DISPLAY_MODE_HTML_TABLE Reproduce code: --------------- require_once 'Var_Dump.php'; $resource = mysql_pconnect('localhost','root',''); Var_Dump::display( $resource ); // this works Var_Dump::display( $resource , '' , VAR_DUMP_DISPLAY_MODE_HTML_TABLE); // this doesn't work Expected result: ---------------- write resource as the code without HTML do Actual result: -------------- WARNING: htmlspecialchars() expects parameter 1 to be string, resource given -- Edit bug report at http://bugs.php.net/?id=25158&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25158&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25158&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25158&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25158&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25158&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25158&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25158&r=support Expected behavior: http://bugs.php.net/fix.php?id=25158&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25158&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25158&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25158&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25158&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25158&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25158&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25158&r=gnused

« previous php.pear.dev (#20106) next »