ID: 45208 User updated by: ncoesel at dealogic dot nl Reported By: ncoesel at dealogic dot nl -Status: Feedback +Status: Open Bug Type: *Calendar problems Operating System: Linux PHP Version: 5.2.6 New Comment:
Looking at the source of getdate() it strikes me several 'foreign' pointers are used before being checked. From this I suspect there is something wrong with the timezone settings on my machine. Previous Comments: ------------------------------------------------------------------------ [2008-06-08 13:07:28] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2008-06-08 12:49:52] ncoesel at dealogic dot nl Description: ------------ Calling getdate causes a segfault after upgrading from PHP Version 4.3.2 to PHP Version 5.2.6-1. Reproduce code: --------------- <?php $d=getdate(); print_r($d); ?> Or <?php $curtime=time(); $d=getdate($curtime); print_r($d); ?> Expected result: ---------------- Array ( [seconds] => 18 [minutes] => 50 [hours] => 13 [mday] => 8 [wday] => 0 [mon] => 6 [year] => 2008 [yday] => 159 [weekday] => Sunday [month] => June [0] => 1212925818 ) Actual result: -------------- Segfault message in Apache log ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45208&edit=1
