Wow, all right ; that's why casting to (array) before passing the variable , thus making a copy of it, works. Thanks for that short but effective answer ;-) However, except in the comments, this is not said in the original doc. It should be written ArrayObject ArrayObject::__construct ( mixed &$input ) shouldn't it ? 2007/9/19, Chris <dmagick@xxxxxxxxx>: > > Julien Pauli wrote: > > Hi, at first, read that bug report : > http://bugs.php.net/bug.php?id=42065 > > > > I would like to say that it doesn't seem to be fixed as it's said. > > When I execute the bug 42065 test case, it still fails. > > > > In reality, another code brought me to that bug, please consider this : > > http://www.php.net/manual/en/function.ArrayObject-construct.php#77235 > > Says it all :) > > -- > Postgresql & php tutorials > http://www.designmagick.com/ >