#11984 [Opn->Bgs]: filetype function not working for non-existant files
| From: | iliaa@php.net | Date: | Wed, 14 Aug 2002 03:54:09 +0000 |
| Subject: | #11984 [Opn->Bgs]: filetype function not working for non-existant files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16724@lists.php.net to get a copy of this message | ||
ID: 11984
Updated by: iliaa@php.net
Reported By: JSaunders@edis.co.uk
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-09 13:12:08] JSaunders@edis.co.uk
Regression error from 4.0.5 to 4.0.6. Looks like using filetype on a
non-existant file, returns the value of the last valid call. Seen on
the pre-compiled win32 flavour download with all modules.
<?php
echo filetype("c:/zzzzzz.zzz");
echo filetype("c:/");
echo filetype("c:/zzzzzz.zzz");
?>
Produces
<br>
<b>Warning</b>: Unknown file type (0) in <b>-</b> on line
<b>2</b><br>
unknowndirdir
on 4.0.6. The file zzzzzzz.zzz does not exist. 4.0.5 returns dir with
no warning.
clearstatcache() has no effect. Have to explicitly check for file
existance with file_exists under this release.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11984&edit=1