Re: PDO::FETCH_SERIALIZE
| From: | Hannes Magnusson | Date: | Sun, 24 Feb 2013 23:26:08 +0000 |
| Subject: | Re: PDO::FETCH_SERIALIZE | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969384272@lists.php.net to get a copy of this message | ||
On Sun, Feb 24, 2013 at 2:14 PM, Karoly Negyesi <karoly@negyesi.net> wrote:
> Hi,
>
> The current documentation is "As PDO::FETCH_INTO but object is
> provided as a serialized string". Well, maybe.
>
> What happens is
>
> 1) If the class implements Serializable then the unserialize() method is called.
> 2) Otherwise if __wakeup exists it is called.
> 3) Plain unserialize() is attempted.
>
> I am not 100% we need to do all this because after all unserialize()
> does this. But then again __set is mentioned in the page.
>
> So, should I mention these or not?
I'd say an example, with inline commenting, demonstrating that
behaviour would be nice..
-Hannes