|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-30 11:27 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-05-30 11:27 UTC] johannes@php.net
[2010-05-30 11:38 UTC] pajoye@php.net
[2010-06-01 10:43 UTC] seizu at gmx dot at
[2010-06-01 10:51 UTC] seizu at gmx dot at
[2010-06-01 12:10 UTC] seizu at gmx dot at
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 16:00:02 2025 UTC |
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