Date: 03/26/99
- Next message: Bug Database: "[PHP-DEV] Bug #1269 Updated: is_array function defines the variable?"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] win32 compile fails :3.0.7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] Bug #1269 Updated: is_array function defines the variable?"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] win32 compile fails :3.0.7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

