From: [EMAIL PROTECTED]
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