php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #615 Every time I use "is_link()" it either returns 0 or returns nothg...
Submitted: 1998-08-04 22:30 UTC Modified: 1998-09-06 03:03 UTC
From: jeremy at comevisit dot com Assigned: jaakko (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0.1 OS: Linux 2.0.34
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: jeremy at comevisit dot com
New email:
PHP Version: OS:

 

 [1998-08-04 22:30 UTC] jeremy at comevisit dot com
I created a symbolic link and then tried to use "is_link()" to verify that PHP recognized it. The function did not print anything to the screen -- not even a "0" to indicate a failure. I tried all kinds of things and then I realized that PHP may not be seeing the link at all... but rather the place where the link pointed to. So, I used "filetype()" on the link and it reported that the link was a directory! The link just happens to point to a directory... I don't think that's a coincidence.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-06 03:03 UTC] jaakko
Yes, it has bugs and needs a small cleanup.  I'll take a look
and while at it I'll also implement lstat().

Now it should work in CVS version and in to be released 3.0.4..
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 09:00:02 2026 UTC