Date: 09/16/00
- Next message: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #6779: Apache crashes on start-up"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6636 Updated: __FILE__ is destroyed after include()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6662
Updated by: stas
Reported By: jeroen <email protected>
Status: Analyzed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Float keys don't work, the variable gets converted to integer. This, however, doesn't work with array initializers - this should be fixed.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-11 22:06:25] jeroen <email protected>
It seems that array keys of type real are not allowed in class declaration:
class MyClass {
var $a = array( 1.5=>1, 3.5=>2, 7.5=>5, 99=>10);
...
}
Results in only one item 99=>10 in array.
Above is accepted in PHP3.
Workaround:
var $a = array( '1.5'=>1, '3.5'=>2, '7.5'=>5, '99'=>10);
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6662
-- 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>
- Next message: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #6779: Apache crashes on start-up"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6636 Updated: __FILE__ is destroyed after include()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

