ID: 34134 Updated by: [EMAIL PROTECTED] Reported By: dr dot paul dot thomas at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Fedora Core 1 PHP Version: 5CVS-2005-08-15 (snap) New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php list() only works with indexed arrays: http://no.php.net/list Previous Comments: ------------------------------------------------------------------------ [2005-08-15 12:57:04] dr dot paul dot thomas at gmail dot com Description: ------------ When using list() to assign variable values returned by gettimeofday(), the assignments do not appear to occur. Using print_r() shows that gettimeofday() appears to be returning array values fine. Reproduce code: --------------- An interactive session: [EMAIL PROTECTED] php5-STABLE-200508150842]$ ./sapi/cgi/php -qa Interactive mode enabled <? print_r(gettimeofday()); Array ( [sec] => 1124102986 [usec] => 124728 [minuteswest] => -60 [dsttime] => 0 ) list($a,$b,$c,$d)=gettimeofday(); echo "$a,$b,$c,$d\n"; ,,, Expected result: ---------------- echo "$a,$b,$c,$d\n"; 1124102986,124728,-60,0 Actual result: -------------- echo "$a,$b,$c,$d\n"; ,,, (see session above) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34134&edit=1