Re: [PATCH] zend_operators DVAL_TO_LVAL fix

From: Date: Mon, 30 Aug 2004 23:40:13 +0000
Subject: Re: [PATCH] zend_operators DVAL_TO_LVAL fix
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-12486@lists.php.net to get a copy of this message
At 11:17 PM 8/30/2004 +0100, Joe Orton wrote:
On Mon, Aug 30, 2004 at 02:20:42PM -0700, Andi Gutmans wrote: I know it's undefined but why is defining it to LONG_MAX/LONG_MIN any better? It's not the kind of behavior which I think we should "define". C code which has undefined behaviour may segfault or suffer some other run-time exception; the compiler may arrange for it to print "I'm a fluffy pink rabbit" to stderr as a side-effect.
Joe, I'm pretty sure if you read the C standard it'll say something about the "value" being undefined, not about the behavior of the whole program being undefined. Andi

« previous php.internals (#12486) next »