php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9748 wrong behavior of is_dir() and is_file() on a dir-link
Submitted: 2001-03-14 11:11 UTC Modified: 2001-04-29 05:57 UTC
From: fabiankessler at usa dot net Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.4 OS: winnt 4.0
Private report: No CVE-ID: None
 [2001-03-14 11:11 UTC] fabiankessler at usa dot net
on a directory link, is_dir() returns false while is_file() returns true. 

i don't think this is the desired behavior, is it?

i see that ppl are confused here also
http://www.php.net/manual/en/function.is-dir.php
http://www.php.net/manual/en/function.is-file.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-20 17:25 UTC] ohrn@php.net
What do you mean with directory link?
A Windows "shortcut" to a directory?

 [2001-04-07 07:15 UTC] fabiankessler at usa dot net
yes
 [2001-04-29 05:57 UTC] jmoore@php.net
windows shortcuts are files they are not directories, this is a problem with windows, not PHP.

- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC