[PHP-DEV] PHP 4.0 Bug #5640: When a common name for an array and scalar is used, assignments override each o From: alex <email protected>
Date: 07/17/00

From: alex <email protected>
Operating system: all
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: When a common name for an array and scalar is used, assignments override each o

<?php
        $a[0] = "hello";
        $a = "world";
        
        print($a[0] . "\n");
        print($a . "\n");
?>

The following code misbehaves as well:

<?php
        $a = "world";
        $a[0] = "hello";
        
        print($a . "\n");
        print($a[0] . "\n");
?>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>