From:             woeterman at gmail dot com
Operating system: Linux Debian
PHP version:      5.2.6
PHP Bug Type:     Date/time related
Bug description:  Date escaping goes incorrectly

Description:
------------
When escaping with date("\t"), it shows up as nothing instead of 't'.
It seems to work fine with other characters, such as \a

Reproduce code:
---------------
<?php
echo "1: ". date("jS \of F Y H:i:s"). "<br />"; 

echo "2: ". date("jS \of F Y at H:i:s"). "<br />";

echo "3: ". date("jS \of F Y \at H:i:s"). "<br />";

echo "4: ". date("jS \of F Y \a\t H:i:s"). "<br />";

echo "5: ". date("jS \of F Y \t H:i:s"). "<br />";
?>

Expected result:
----------------
1: 2nd of September 2008 13:36:57
2: 2nd of September 2008 pm30 13:36:57
3: 2nd of September 2008 a30 13:36:57
4: 2nd of September 2008 at 13:36:57
5: 2nd of September 2008 t 13:36:57

Actual result:
--------------
1: 2nd of September 2008 13:36:57
2: 2nd of September 2008 pm30 13:36:57
3: 2nd of September 2008 a30 13:36:57
4: 2nd of September 2008 a 13:36:57
5: 2nd of September 2008 13:36:57

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

Reply via email to