ID: 31602
Comment by: stasonis at mcs dot suffolk dot edu
Reported By: chris at mcs dot suffolk dot edu
Status: Open
Bug Type: Filesystem function related
Operating System: Mandrake 10.1
PHP Version: 5.0.3
New Comment:
Also, if I specify the file in imagegif(), ie:
imagegof($im, "test.gif");
This works fine, even if I change the path of the file to
"/tmp/test.gif"
ps - I entered the wrong email on the last submission
Previous Comments:
------------------------------------------------------------------------
[2005-01-19 01:42:26] chris at mcs dot suffolk dot edu
Description:
------------
I tried using imagegif to display an image and it gave the error:
Warning: imagegif() [function.imagegif]: Unable to open temporary file
in /home/stasonis/public_html/image.php on line 14
After testing the tmpfile function I realized this did not work either.
Both the directory the script resides in and /tmp have rwx permissions
for everyone, so I don't think it is a permissions issue
Reproduce code:
---------------
$temp = tmpfile();
if(!$temp){
echo "Failure";
return;
}
echo "Success";
Expected result:
----------------
Success to be echoed
Actual result:
--------------
Failure Echoed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31602&edit=1