#50217 [Opn->Asn]: strftime: plattform specifics

From: Date: Wed, 18 Nov 2009 12:47:55 +0000
Subject: #50217 [Opn->Asn]: strftime: plattform specifics
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3207@lists.php.net to get a copy of this message
ID: 50217 Updated by: rquadling@php.net Reported By: none at here dot com -Status: Open +Status: Assigned Bug Type: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: rquadling New Comment: If you turn on E_WARNINGS, you will get 5 warnings. 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 Also, %m = 11, not November, which is %B Previous Comments: ------------------------------------------------------------------------ [2009-11-18 12:22:36] none at here dot com Description: ------------ please add to the documentation for strftime(), that for unsupported conversion specifiers, the conversion might fail completely and return an empty string. on linux: echo "x" . strftime("%m %C") . "x"; > "xNovember 09x" on windows: echo "x" . strftime("%m %C") . "x"; > "xx" and NOT as expected "xNovember x" with just the second conversion missing. ideally, the conversion specifier list could list if it's available on a specific platform. for people porting code from win to linux, this is a cruicial issue... thanks & keep up the great work! Reproduce code: --------------- --- From manual page: function.strftime#Description --- see description Expected result: ---------------- see description ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50217&edit=1

« previous php.doc.bugs (#3207) next »