#22224 [NEW]: implode changes object references in array

From: Date: Fri, 14 Feb 2003 17:47:00 +0000
Subject: #22224 [NEW]: implode changes object references in array
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33188@lists.php.net to get a copy of this message
From: holger.kral@dorten.com Operating system: WIN 2K PHP version: 4.3.0 PHP Bug Type: *General Issues Bug description: implode changes object references in array implode seems to change object references in the given array to strings. try this: <?php class a { function b() { return true; } } $a1 = new a(); $a2 = new a(); $arr = array(); $arr[0] =& $a1; $arr[1] =& $a2; echo implode(",",$arr); echo $arr[0]->b(); // ERROR! ?> -- Edit bug report at http://bugs.php.net/?id=22224&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22224&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22224&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22224&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22224&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22224&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22224&r=support Expected behavior: http://bugs.php.net/fix.php?id=22224&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22224&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22224&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22224&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22224&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22224&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22224&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22224&r=gnused

« previous php.bugs (#33188) next »