#29594 [NEW]: imagegif gives warning "Unable to open temporary file "
| From: | jbrady at sbccd dot cc dot ca dot us | Date: | Tue, 10 Aug 2004 01:12:43 +0000 |
| Subject: | #29594 [NEW]: imagegif gives warning "Unable to open temporary file " | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-64338@lists.php.net to get a copy of this message | ||
From: jbrady at sbccd dot cc dot ca dot us
Operating system: Windows XP,2003
PHP version: 5CVS-2004-08-10 (dev)
PHP Bug Type: GD related
Bug description: imagegif gives warning "Unable to open temporary file "
Description:
------------
I installed the latest version of php5 (built Aug 10 2004 02:15:17 ). I
used php.ini-recommended changing only:
display_errors = on
extension_dir = "c:\php\ext"
extension=php_gd2.dll
Tried on Windows XP and Windows 2003. When I use the imagegif() function,
it gives me a warning: "Warning: imagegif() [function.imagegif]: Unable to
open temporary file in c:\Inetpub\wwwroot\tests\php\imagetest.php on line
6
"
It is not a permissions problem. The temporary file functions work, and if
I change it to imagejpeg, it outputs the picture, without any errors.
Reproduce code:
---------------
<?php
$strFileName = "http://static.php.net/www.php.net/images/php.gif";
$image = imageCreateFromGif($strFileName);
if(is_resource($image)) {
// NOTE:
// Required to get a picture on Netscape
// Comment out to get Error messages
header("Content-type: image/gif");
// END NOTE
imagegif($image);
imageDestroy($image);
exit;
}
?>
Expected result:
----------------
The php logo from the php website.
Actual result:
--------------
Warning: imagegif() [function.imagegif]: Unable to open temporary file in
c:\Inetpub\wwwroot\tests\php\imagetest.php on line 6
--
Edit bug report at http://bugs.php.net/?id=29594&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29594&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29594&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29594&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29594&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29594&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29594&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29594&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29594&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29594&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29594&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29594&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29594&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29594&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29594&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29594&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29594&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29594&r=float