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

From: Date: Fri, 14 Feb 2003 18:06:27 +0000
Subject: #22224 [Asn]: implode changes object references in array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33191@lists.php.net to get a copy of this message
ID: 22224 Updated by: moriyoshi@php.net Reported By: holger.kral@dorten.com Status: Assigned Bug Type: *General Issues Operating System: WIN 2K PHP Version: 4.3.0 Assigned To: moriyoshi New Comment: Oh it turned out not to be my fault :) Anyway, I'm going to fix this bug then. Previous Comments: ------------------------------------------------------------------------ [2003-02-14 12:01:11] moriyoshi@php.net Verified & assigned to me. This seems to be my fault. ------------------------------------------------------------------------ [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 (#33191) next »