On Wed, Jun 10, 2015 at 7:42 AM, Sara Golemon <poll...@php.net> wrote:
> Dmitry, what's the reasoning behind this diff in the first place?
> Doesn't the compiler fold (<const-string> . <const-string>) already
> anyhow?  How would we wind up with CONCAT_CONST_CONST at runtime?
>
Derp.  Looked again, and it's (const *OR* string) && (const *OR*
string).  I read those as ANDs initially.

But now I'm confused again, because that makes it look like we can
reach this with an expression like "1 . 2" 1 and 2 are consts, but not
strings, so then we get to:

  zend_string *op1_str = Z_STR_P(op1);

Which will lead to op1_str pointing at 0x00000001 and a segfault.

What am I missing here?

-Sara

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to