From: RQuadling at GMail dot com Operating system: Windows XP SP3 PHP version: 5.3SVN-2009-09-07 (snap) PHP Bug Type: Scripting Engine problem Bug description: strftime('%P') generates "nvalid CRT parameters detected".
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 bug report at http://bugs.php.net/?id=49489&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49489&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49489&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49489&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49489&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49489&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49489&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49489&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49489&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49489&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49489&r=support Expected behavior: http://bugs.php.net/fix.php?id=49489&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49489&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49489&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49489&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49489&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49489&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49489&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49489&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49489&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49489&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49489&r=mysqlcfg