#44591 [NEW]: Debian Linux 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux
| From: | woeterman at gmail dot com | Date: | Tue, 01 Apr 2008 12:44:13 +0000 |
| Subject: | #44591 [NEW]: Debian Linux 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-123824@lists.php.net to get a copy of this message | ||
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=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