php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67272 Pathinfo function does not state failure information
Submitted: 2014-05-14 00:05 UTC Modified: 2014-05-19 12:09 UTC
From: jptdrake at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: N/A
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: jptdrake at gmail dot com
New email:
PHP Version: OS:

 

 [2014-05-14 00:05 UTC] jptdrake at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.pathinfo
---

The pathinfo function does not say what happens on failure, specifically if the file exists.

Test script:
---------------
N/A


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-14 00:06 UTC] jptdrake at gmail dot com
Change "specifically if the file does not exist."
 [2014-05-19 12:09 UTC] sobak@php.net
-Status: Open +Status: Not a bug
 [2014-05-19 12:09 UTC] sobak@php.net
I think that's not a bug. This function has nothing to do with filesystem. It just parses string in order to extract path-specific elemens. Path doesn't have to be existing one, as it is treated just like a string.

Maybe we should make it more clear on doc page...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 13:00:02 2026 UTC