php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17128 lstat (mis)behaves exactly like stat
Submitted: 2002-05-09 16:03 UTC Modified: 2002-07-02 16:29 UTC
From: Andrew dot Rice at inGenesis dot net Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.2.0 OS: Debian GNU/Linux 2.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Andrew dot Rice at inGenesis dot net
New email:
PHP Version: OS:

 

 [2002-05-09 16:03 UTC] Andrew dot Rice at inGenesis dot net
lstat tracks through symbolic link and returns the permission mode of the actual file, rather than the link itself.
fileperms also seems to be affected.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 16:42 UTC] Andrew dot Rice at inGenesis dot net
is_link is also broken
 [2002-07-02 16:29 UTC] sterling@php.net
thanks for the laugh...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 28 23:01:28 2025 UTC