From: chris at mcs dot suffolk dot edu
Operating system: Mandrake 10.1
PHP version: 5.0.3
PHP Bug Type: Filesystem function related
Bug description: tmpfile() fails
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 bug report at http://bugs.php.net/?id=31602&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31602&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31602&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31602&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31602&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31602&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31602&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31602&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31602&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31602&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31602&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31602&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31602&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31602&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31602&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31602&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31602&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31602&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31602&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31602&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31602&r=mysqlcfg