On 8 May 2022, at 12:38, Mark Randall <marand...@php.net> wrote:
> On 08/05/2022 11:48, Jordan LeDoux wrote:
>> This is not the case with null. If you use the unset() function on a
>> variable for example, it will var_dump as null *and* it will pass an
>> is_null() check *and* it will pass a $var === null *and* it will return
>> false for an isset() check. Null loses these qualities if it is cast to
>> *any* scalar.
> 
> 
> Fortunately the writing is on the wall for the undefined cases, but that 
> doesn't take away from your argument.


Yep, I agree, an exception for an undefined variable is probably fine... I'm 
looking at variables specifically being set to to the NULL value, and how that 
NULL value is coerced.

Craig

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to