#31537 [Opn->Fbk]: idate crashes
ID: 31537
Updated by: derick@php.net
Reported By: corneliu at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: WinXP
PHP Version: 5.0.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
This works fine for me (on LInux), please try the snapshot.
Previous Comments:
------------------------------------------------------------------------
[2005-01-13 12:33:21] corneliu at gmail dot com
date works just fine
------------------------------------------------------------------------
[2005-01-13 12:31:20] corneliu at gmail dot com
Description:
------------
Server Apache 2.0.52 win32
idate crashes if [int timestamp] parameter is date less than 1 January
1970
Reproduce code:
---------------
<?php var_dump(idate("L", mktime(0,0,0,1,1,1900))); ?>
Expected result:
----------------
bool(false)
Actual result:
--------------
Apache.exe - Application Error
The instruction at "0x0073e083" referenced memory at "0x00000014". The
memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31537&edit=1
Thread (3 messages)