|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-15 13:00 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 16:00:01 2025 UTC |
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: [paul@paul 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)