php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6853 is_link malfunction?
Submitted: 2000-09-22 11:08 UTC Modified: 2002-04-01 19:40 UTC
From: kittengrey at ntlworld dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.2 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: kittengrey at ntlworld dot com
New email:
PHP Version: OS:

 

 [2000-09-22 11:08 UTC] kittengrey at ntlworld dot com
If the destination of a link is not found, is_link will return false. Performing readlink on the link still returns the intended destination. The link, regardless of whether the destination exists or not, is still a link. Wouldn't it make more sense to have is_link return true, and allow the user to then perform checks to see whether the destination is valid?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-01 19:40 UTC] sniper@php.net
Don't know if this was some bug or what but with latest
CVS and PHP 4.2.0-dev it returns true if link exists (even
if the destination doesn't).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Sep 15 01:00:01 2025 UTC