ID:               49489
 Updated by:       rquadl...@php.net
-Summary:          strftime('%P') generates "nvalid CRT parameters
                   detected".
 Reported By:      RQuadling at GMail dot com
 Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP SP3
 PHP Version:      5.3SVN-2009-09-07 (snap)
 New Comment:

Typo


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

Reply via email to