ID: 49489 Updated by: der...@php.net Reported By: RQuadling at GMail dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: win32 only - Windows XP SP3 PHP Version: 5.3SVN-2009-09-07 (snap) New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Windows doesn't support all modifiers, see http://msdn.microsoft.com/en-us/library/az4se3k1(VS.71).aspx for the supported ones (and that link is in the manual at http://uk3.php.net/strftime . Previous Comments: ------------------------------------------------------------------------ [2009-09-07 07:49:31] RQuadling at GMail dot com Description: ------------ Hi. I was looking at the bug http://bugs.php.net/?id=49481 and saw Derick's example at the bottom. Tried running in and got some errors. Retrieved latest Win32 VC9 x86 nts snapshot (PHP 5.3.2-dev (cli) (built: Sep 7 2009 07:57:33)) Using %P causes the problem below. %p outputs AM (or PM if it is PM) as expected. Previous reports of this error (http://bugs.php.net/bug.php?id=48652) says "Error in a dependency". Not sure when this issue arose. Reproduce code: --------------- php -n -d date.timezone="Europe/London" -r "echo strftime('%P');" Expected result: ---------------- am Actual result: -------------- Warning: Invalid CRT parameters detected in Command line code on line 1 Warning: Invalid CRT parameters detected in Command line code on line 1 Warning: Invalid CRT parameters detected in Command line code on line 1 Warning: Invalid CRT parameters detected in Command line code on line 1 Warning: Invalid CRT parameters detected in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49489&edit=1