php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12911 stat does not report on dead links
Submitted: 2001-08-22 16:11 UTC Modified: 2001-08-22 16:27 UTC
From: robin at linuxgate dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: linux
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: robin at linuxgate dot de
New email:
PHP Version: OS:

 

 [2001-08-22 16:11 UTC] robin at linuxgate dot de
if you have a link ('foo') pointing at a non exsitent target ('bar'), fstat returns false and does not report anything about it, but even dead links have an owner etc.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-22 16:13 UTC] robin at linuxgate dot de
sorry, there was a typo below. to avoid confusion the function is "stat" not "fstat".
 [2001-08-22 16:25 UTC] robin at linuxgate dot de
i fidled around with this bug a little and it looks like 'fileperms' also fails to report anything on a dead link. it doesnt even report unknown, it just returns false.

'is_link' on the opposite works fine with dead links.
 [2001-08-22 16:27 UTC] mfischer@php.net
This has been fixed in CVS.

Try a daily snapshot [1].

- Markus

[1] http://snaps.php.net:8000/
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 19:01:32 2025 UTC