Edit report at http://bugs.php.net/bug.php?id=51948&edit=1
ID: 51948 Updated by: paj...@php.net Reported by: seizu at gmx dot at Summary: Bug when you provide the absolute php-interpreter path Status: Bogus Type: Bug Package: Scripting Engine problem Operating System: Win32 PHP Version: 5.3.2 New Comment: It is only about PHP finding or not a php.ini with a timezone defined in it. If no tz is set you will get this error. Previous Comments: ------------------------------------------------------------------------ [2010-05-30 11:27:30] johan...@php.net Make sure you are running the same PHP interpreter, two times. It looks like another PHP is in the PATH first. The error message tells you that c:\php\php.exe is configured wrong. ------------------------------------------------------------------------ [2010-05-30 11:18:29] seizu at gmx dot at Description: ------------ Bug occurs even when you run the script from the command line and you provide the absolute path of your php interpreter like c:\php\php.exe ..... also described in #51890 (but marked as bogus by kalle) Test script: --------------- just tpye in the command line got an error: ============= c:\php\php.exe -r "echo strftime('%H:%M:%S',time());" no error: ========= php.exe -r "echo strftime('%H:%M:%S',time());" Expected result: ---------------- 11:04:54 Actual result: -------------- PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in Command line code on line 1 Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are stil l getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51948&edit=1