ID: 38975 User updated by: rachmel at avaya dot com Reported By: rachmel at avaya dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: WindRiver Linux PHP Version: 5.1.6 Assigned To: derick New Comment:
I am not sure I can do that - in the meantime, it seems that if php has a default timezone conigured, it ignores the localtime definitions on the Linux kernel. However, if I change the default timezone to "Pacific/Fiji" for example, i can reproduce the crash with a call to "date("1"). it is interesting, that a call to phpinfo() doesn't crash, although it does display the time zone chosen. Are there any leads you can think about that might cause this problem? Where in the php code can I find the date function, so I can try and debug it from there? Thanks. Previous Comments: ------------------------------------------------------------------------ [2006-10-16 18:30:35] [EMAIL PROTECTED] Please provide an account on a WindRiver Linux machine for debugging. ------------------------------------------------------------------------ [2006-10-16 18:24:56] rachmel at avaya dot com When not setting the default time zone, php seems to use the localtime, as defined on Linux. Even when setting the timezone with date_timezone_default_set() , for example, with the value of "Pacific/Fiji" , i get a segmentation fault when I call date("1"), or any other date related function. Does php use Linux's timezone files? ------------------------------------------------------------------------ [2006-10-12 21:26:22] [EMAIL PROTECTED] Well, PHP doesn't give a damn about that :) If you request a page with just "error_reporting(E_ALl);phpinfo();" in it, what will it show as timezone? ------------------------------------------------------------------------ [2006-10-12 19:23:23] makavy at avaya dot com It does not matter which timezone I use. any one of the files that 'zic' creates has this problem. What i did to set the time zone is create a symbolic link to one of the zoneinfo files: /etc/localtime -> /usr/share/zoneinfo/[Continent]/[city] I did not do anything in php.ini file, or issue a php command for that. ------------------------------------------------------------------------ [2006-10-11 10:02:56] [EMAIL PROTECTED] I can not reproduce this at all. You didn't quite mention which timezone you are using, and did you set the timezone in php with the php.ini setting "date.timezone" or the function date_timezone_default_set()? Please provide more information. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38975 -- Edit this bug report at http://bugs.php.net/?id=38975&edit=1