#22224 [Opn->Asn]: implode changes object references in array

From: Date: Fri, 14 Feb 2003 18:01:11 +0000
Subject: #22224 [Opn->Asn]: implode changes object references in array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33189@lists.php.net to get a copy of this message
ID: 22224 Updated by: moriyoshi@php.net Reported By: holger.kral@dorten.com -Status: Open +Status: Assigned Bug Type: *General Issues Operating System: WIN 2K PHP Version: 4.3.0 -Assigned To: +Assigned To: moriyoshi New Comment: Verified & assigned to me. This seems to be my fault. Previous Comments: ------------------------------------------------------------------------ [2003-02-14 11:47:00] holger.kral@dorten.com 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 this bug report at http://bugs.php.net/?id=22224&edit=1

« previous php.bugs (#33189) next »