Re: [RFC] ZPP Failure On Overflow

From: Date: Wed, 24 Sep 2014 17:40:25 +0000
Subject: Re: [RFC] ZPP Failure On Overflow
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-77584@lists.php.net to get a copy of this message
Hi! >> That said, most cases of "garbage in, garbage out" would presumably >> remain so, since most ZPP failures result in a return of NULL or >> FALSE, which would probably end up cast back to the expected type >> (int(0), string(''), etc) by the surrounding code. > > Right. It’s not an E_RECOVERABLE_ERROR, you’d just get an E_WARNING. No, you'd get E_WARNING *and* function would not run. Where before it did run. That is the problem, not the warning - you add more cases where the function does not run when it did before, and that can have profound consequences on the code that depends on it. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

« previous php.internals (#77584) next »