PHP 4.0 Bug #5640: When a common name for an array and scalar is used, assignments override each o

From: Date: Mon, 17 Jul 2000 13:41:45 +0000
Subject: PHP 4.0 Bug #5640: When a common name for an array and scalar is used, assignments override each o
Groups: php.dev 
Request: Send a blank email to php-dev+get-24747@lists.php.net to get a copy of this message
From: alex@zend.com 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"); ?>

« previous php.dev (#24747) next »