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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 03:01:29 2024 UTC