#31602 [Opn->Fbk]: tmpfile() fails

From: Date: Thu, 20 Jan 2005 22:51:15 +0000
Subject: #31602 [Opn->Fbk]: tmpfile() fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72547@lists.php.net to get a copy of this message
ID: 31602 Updated by: tony2001@php.net Reported By: stasonis at mcs dot suffolk dot edu -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Mandrake 10.1 PHP Version: 5.0.3 New Comment: Please, execute echo $TMP in console as root and tell us what you got. Previous Comments: ------------------------------------------------------------------------ [2005-01-19 01:48:47] stasonis at mcs dot suffolk dot edu 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 ------------------------------------------------------------------------ [2005-01-19 01:42:26] stasonis 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

« previous php.bugs (#72547) next »