Re: com php-src: Fixed serialization of non string values on __sleep: ext/standard/tests/serialize/serialization_objects_016.phpt ext/standard/var.c
| From: | Dmitry Stogov | Date: | Mon, 23 Mar 2015 18:15:25 +0000 |
| Subject: | Re: com php-src: Fixed serialization of non string values on __sleep: ext/standard/tests/serialize/serialization_objects_016.phpt ext/standard/var.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-85830@lists.php.net to get a copy of this message | ||
the key option is opcahce.protect_memory=1
If it works fine in 5.5 and 5.6 I may fix this myself.
For 5.5 and 5.6 convert_to_string_ex() may be good.
For master it's better to use zval_get_string()
Thanks. Dmitry.
On Mon, Mar 23, 2015 at 8:18 PM, Stanislav Malyshev <smalyshev@gmail.com>
wrote:
> Hi!
>
> On 3/23/15 2:45 AM, Dmitry Stogov wrote:
> > Hi Stas,
> >
> > The test ext/standard/tests/serialize/bug69210.phpt started to crash in
> > master after this patch (most probably this).
> > Run test with opcache and opcahce.protect_memory=1
> > I suppose, it tries to modify zval in opcache SHM.
> > I didn't check 5.5. and 5.6
>
> Yeah, it does convert_to_string(). I'll look into it. Travis seems to be
> fine, so should we add/change options there?
>
> Could you try to check if replacing the convert_to_string with
> convert_to_string_ex helps any? If not, we'll probably have to look for
> a different solution.
>
> --
> Stas Malyshev
> smalyshev@gmail.com
>