#22224 [Asn->Csd]: implode changes object references in array
| From: | moriyoshi@php.net | Date: | Fri, 14 Feb 2003 18:45:17 +0000 |
| Subject: | #22224 [Asn->Csd]: implode changes object references in array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33192@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
+Status: Closed
Bug Type: *General Issues
Operating System: WIN 2K
PHP Version: 4.3.0
Assigned To: moriyoshi
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-02-14 12:06:27] moriyoshi@php.net
Oh it turned out not to be my fault :)
Anyway, I'm going to fix this bug then.
------------------------------------------------------------------------
[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