note 51192 rejected from function.fclose by nlopess
| From: | nlopess@php.net | Date: | Thu, 24 Mar 2005 23:15:07 +0000 |
| Subject: | note 51192 rejected from function.fclose by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86915@lists.php.net to get a copy of this message | ||
Note Submitter: tommy the kid *AT* mac (dot) com
----
if ($pointer = File_CSV::getPointer($TempFileName, $conf, FILE_MODE_WRITE)) {
if (!@flock($pointer, LOCK_UN)) die("Error with file $TempFileName");;
if (!@fclose($pointer)) die("Error with file $TempFileName");
if (!@fclose($pointer)) die("Error with file $TempFileName");
return $TempFileName;
}
for some odd reason I have to close the pointer twice to get it to "really" close.. even
tho I am checking the error, and it doesn't give an error either time... really strange?
Tommy