Bug #51694 [NEW]: Extra characters in strftime %b

From: Date: Thu, 29 Apr 2010 07:44:15 +0000
Subject: Bug #51694 [NEW]: Extra characters in strftime %b
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150024@lists.php.net to get a copy of this message
From:             
Operating system: Centos 5.x
PHP version:      5.3.2
Package:          Date/time related
Bug Type:         Bug
Bug description:Extra characters in strftime %b

Description:
------------
Creating a date for local (fiFI) format

$dte = strftime("%a, %d %b %Y %H:%M:%S %Z");

adding it to email headers

$headers[] = "Date: $dte";

Results in an extra character after (or in) %b:

Date: ti, 27 huhti� 2010 13:07:18 CDT

The character seems to be chr(240), at least as reported by Amavis and some
email systems seem to reject the message (otherwise pure UTF8)




-- 
Edit bug report at http://bugs.php.net/bug.php?id=51694&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=51694&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=51694&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=51694&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=51694&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51694&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=51694&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=51694&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=51694&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=51694&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=51694&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=51694&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=51694&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=51694&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=51694&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51694&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51694&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=51694&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=51694&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=51694&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=51694&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=51694&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#150024) next »