From:             dr dot paul dot thomas at gmail dot com
Operating system: Fedora Core 1
PHP version:      5CVS-2005-08-15 (snap)
PHP Bug Type:     Scripting Engine problem
Bug description:  list() constructor is broken with gettimeofday()

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 bug report at http://bugs.php.net/?id=34134&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34134&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34134&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34134&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34134&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34134&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34134&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34134&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34134&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34134&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34134&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34134&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34134&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34134&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34134&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34134&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34134&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34134&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34134&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34134&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34134&r=mysqlcfg

Reply via email to