Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Fri, 18 Sep 2015 16:01:15 +0000
Subject: Re: PHP 7.1 - Address PHPSadness #28?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-88338@lists.php.net to get a copy of this message
Lester Caine wrote on 18/09/2015 16:55:
On 18/09/15 16:35, Rowan Collins wrote:
If what you want to write is "if ( ! exists($foo) || is_null($foo) ) { ... }" then that is exactly what "if ( isset($foo) )" will give you, without any notices whatsoever.
NO what I want is if ( exists($foo) ) { is_null($foo) { build uninitialised field } else { build initialise with ($foo) } }
Right, so stop talking about Notices. Ignoring Notices does not get you any closer to that goal. And stop lecturing me about Nulls. The is_null($foo) part of that is the part that already works fine.

« previous php.internals (#88338) next »