#45972 [NEW]: Date escaping goes incorrectly

2008-09-02 Thread woeterman at gmail dot com
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:
---
"; 

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

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

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

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

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



#44591 [NEW]: Debian Linux 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux

2008-04-01 Thread woeterman at gmail dot com
From: woeterman at gmail dot com
Operating system: imagegif's filename parameter
PHP version:  5.2CVS-2008-04-01 (CVS)
PHP Bug Type: GD related
Bug description:  Debian Linux 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 
i686 GNU/Linux

Description:

The documentation says:
'The path to save the file to. If not set or NULL, the raw image stream
will be outputted directly.'

But when using null, the image is not saved to a file, but not displayed
on the screen either.

Reproduce code:
---


Expected result:

First line to save the file to 'test.jpg', which works.

The last 2 lines to display the image on the screen, but only the last one
does.

Actual result:
--
First line saves the file, middle line seems to do nothing, and the last
line displays the image on the screen.

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