From: [EMAIL PROTECTED] Operating system: win2k AS/Linux unknown PHP version: 4.1.1 PHP Bug Type: Date/time related Bug description: strftime("%D") problem
Hi, Running Win2k AS, Apache 1.3.23, PHP-Modul. Had some problems with strftime("%D"); <?php print (strftime("%m/%d/%y"));//outputs 02/16/02 echo "<br>"; print print (strftime("%D")); //outputs nothing ?> should both return the same result, the first displays nothing (empty string), the second one is working fine. The manual says for conversion specifiers: %D - same as %m/%d/%y Tried the same on a linux-box at my ISP (4.1.0, Apache 1.3.22, Kernel 2.2.19, Modulversion): <?php print (strftime("%m/%d/%y")); //outputs 02/16/02 echo "<br>"; print print (strftime("%D")); //02/16/021 ?> So my conclusion : strftime("%D") doesn´t work on win2k and seems to be broken on linux. Thanks Friedhelm Betz P.S.: On win2k standard Installation, no extra extensions enabled. The configure at th elinux-box from ISP: './configure' '--with-config-file-path=/etc' '--enable-xslt' '--with-xslt-sablot' '--with-mysql=/usr/local/mysql' '--with-mcrypt=/usr/local' '--with-apache=../apache_current' '--with-ttf=/usr/local' '--with-t1lib=/usr/local' '--with-gd=/usr/' '--enable-gd-native-ttf' '-with-pdflib' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/lib' '--with-tiff-dir=/usr/local/lib' '--with-imap=/usr/local' '--with-java=/usr/local/java2' '--with-zlib' '--with-dom' '--with-ming' '--with-swf=/usr/local' '--enable-bcmath' '--enable-ftp' '--enable-calendar' '--enable-memory-limit' '--enable-discard-path' -- Edit bug report at http://bugs.php.net/?id=15584&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15584&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15584&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15584&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15584&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15584&r=support Expected behavior: http://bugs.php.net/fix.php?id=15584&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15584&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15584&r=submittedtwice