#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:
---
?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=45972edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45972r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45972r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45972r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45972r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45972r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45972r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45972r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45972r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45972r=support
Expected behavior:http://bugs.php.net/fix.php?id=45972r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45972r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45972r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45972r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45972r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45972r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45972r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45972r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45972r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45972r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45972r=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:
---
?php
// This will save the image to 'test.gif'
imagegif($resource, 'test.gif');

// This should display the image on the screen, but doesnt save nor
display
imagegif($resource, null);

// This displays the image on the screen.
imagegif($resource);
?

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