ID: 38308 Updated by: [EMAIL PROTECTED] Reported By: fartal at lanbyte dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: windows 2000 PHP Version: 4.4.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-08-03 09:29:00] fartal at lanbyte dot com Description: ------------ Hi. After uploading a file, functions "is_file" and "file_exists" return false for the temp file Probably related to "Bug #37118 :is_file returns false for uploaded file" but getting false also with file_exists Just upgraded to PHP Version 4.4.2 on Windows 2000 server SP4 from 4.3.11 where I found the same error Reproduce code: --------------- <?php echo 'is_file:' . (is_file($_FILES['myfile']['tmp_name']) ? 'true' : 'false');?><br><? echo 'file_exists:' . (file_exists($_FILES['myfile']['tmp_name']) ? 'true' : 'false');?><br><? echo 'is_uploaded_file:' . (is_uploaded_file($_FILES['myfile']['tmp_name']) ? 'true' : 'false'); ?> <form action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" method="post"> <input type="file" name="myfile" /> <input type="submit" /> </form> Expected result: ---------------- is_file:true file_exists:true is_uploaded_file:true Actual result: -------------- is_file:false file_exists:false is_uploaded_file:true ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38308&edit=1