ID: 22224
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
Verified & assigned to me.
This seems to be my fault.
------------------------------------------------------------------------
[2003-02-14 11:47:00] [EMAIL PROTECTED]
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