Bug #1269: is_array function defines the variable?
| From: | arneodo at initiative dot fr | Date: | Fri, 26 Mar 1999 16:05:43 +0000 |
| Subject: | Bug #1269: is_array function defines the variable? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4779@lists.php.net to get a copy of this message | ||
From: arneodo@initiative.fr
Operating system: NT4 SP3
PHP version: 3.0.6
PHP Bug Type: Misbehaving function
Bug description: is_array function defines the variable?
I tested this code:
if( ! isSet( $a['b'] ) ) echo "a is not set<BR>";
if( is_array( $a['b'] ) ) echo "a is an array<BR>";
if( isSet( $a['b'] ) ) echo "a is set<BR>";
and the result is:
a is not set
a is set
Conclusion:
is_array() creates the variable.
Why?
PHP Version is 3.0.6 on NT4
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net