Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Sun, 20 Sep 2015 14:09:42 +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-88385@lists.php.net to get a copy of this message
On 20 September 2015 01:43:06 BST, Ryan Pallas <derokorian@gmail.com> wrote: >I would also point out that is_null returns true (after the engine >produces >a notice) for undefined variables: > >$ php -r "var_dump(is_null($a));" > >Notice: Undefined variable: a in Command line code on line 1 > >Call Stack: > 0.0001 118888 1. {main{() Command line code:0 > >*bool(true)* And you know why it does that? For consistency with this: $ php -r "var_dump($a);" Notice: Undefined variable: a in Command line code on line 1 NULL

« previous php.internals (#88385) next »