Re: back on bug 42065 , strange behavior with ArrayObject
| From: | Julien Pauli | Date: | Wed, 19 Sep 2007 09:21:43 +0000 |
| Subject: | Re: back on bug 42065 , strange behavior with ArrayObject | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262231@lists.php.net to get a copy of this message | ||
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@gmail.com>:
>
> 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/
>