Le 16/09/2015 14:23, Rowan Collins a écrit :
I would say encouraging devs to treat unset($foo) and $foo=null as distinct states is an extremely bad idea.
I don't see it this way but, if unset and null states should absolutely be considered the same, why don't we add array_key_isset()/property_isset() and deprecate the xx_exists() functions ? More : why don't we modify the core so that an unset variable returns null, instead of an error ? I understand this is not possible but it would be more consistent with Stas' and your position.
What I don't understand is why considering unset and null as distinct states 'is is an extremely bad idea'. Don't get me wrong, I really don't see the potential problems.
Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php