Re: Undefined variables undefined order

From: Date: Wed, 10 Jun 2015 14:50:26 +0000
Subject: Re: Undefined variables undefined order
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-86554@lists.php.net to get a copy of this message
On Wed, Jun 10, 2015 at 7:42 AM, Sara Golemon <pollita@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

« previous php.internals (#86554) next »