Re: Unserializes, inheritance and allows_classes
| From: | Marcos Passos | Date: | Fri, 18 Jan 2019 01:13:36 +0000 |
| Subject: | Re: Unserializes, inheritance and allows_classes | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103762@lists.php.net to get a copy of this message | ||
>
> How would you fix this example, then? Perhaps we should add more examples
> in the docs.
>
But it closes for extension preventing the serialization of instances not
whitelisted. It may work for @internal or package private classes, but not
for public classes.
Em qui, 17 de jan de 2019 Ã s 23:03, Marco Pivetta <ocramius@gmail.com>
escreveu:
>
>
> On Fri, Jan 18, 2019 at 2:00 AM Marcos Passos <marcospassos.com@gmail.com>
> wrote:
>
>> How would you fix this example, then? Perhaps we should add more examples
>> in the docs.
>>
>
> You'd include all expected child classes in the list of
allowed_classesOG
> †ã|+è^o$ó-v%..
> As for the docs, feel free to go ahead and edit them directly :+1:
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
>