note 40975 rejected from function.tempnam by cece
| From: | cece@php.net | Date: | Thu, 25 Mar 2004 10:37:42 +0000 |
| Subject: | note 40975 rejected from function.tempnam by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67146@lists.php.net to get a copy of this message | ||
Note Submitter: linccg@msn.com
----
System: Windows
Test file: d:\test\myphp.php
==Begin Of File==
<?
$fname=tempnam("./","foo");
$fp = fopen($fname,"w");
fwrite($fp,"catch a bug");
fclose($fp);
unlink($fname);
Echo File_Exists($fname);
?>
==End Of File==
I ran this program
D:\>php.exe d:\test\myphp.php
File $fname exists, but File_Exists() return false.
It seems a bug on unlink or file_exists.