Date: 08/31/01
- Next message: sander <email protected>: "[PHP-DEV] Bug #12606 Updated: require_once failing"
- Previous message: webmaster <email protected>: "[PHP-DEV] Bug #13065 Updated: Error generated when I run Make from Apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 12257
Updated by: sander
Reported By: daniel_sevcik <email protected>
Old Summary: list() construct doesn't work as expected.
Status: Open
Old Bug Type: Scripting Engine problem
Bug Type: Feature/Change Request
Operating System: W2000, Debian
PHP Version: 4.0.6
New Comment:
List() can't handle associative arrays. Moved to feature request.
Previous Comments:
------------------------------------------------------------------------
[2001-07-19 11:40:26] daniel_sevcik <email protected>
<?php
$tmp=array(0=>1, "test"=>2);
list($xx,$yy)=$tmp;
echo("$xx, $yy");
?>
---Output:start---
1,
---Output:end-----
Variable $yy is empty (only if key name is not integer).
$tmp=array(0=>1, 1=>2);
In this case - it works...
Danny
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12257&edit=1
-- 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: sander <email protected>: "[PHP-DEV] Bug #12606 Updated: require_once failing"
- Previous message: webmaster <email protected>: "[PHP-DEV] Bug #13065 Updated: Error generated when I run Make from Apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

