[PHP-DEV] Bug #1269: is_array function defines the variable? From: arneodo <email protected>
Date: 03/26/99

From: arneodo <email protected>
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 <email protected>
For help: php-dev-help <email protected>