php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38187 Example update for pathinfo()
Submitted: 2006-07-22 12:19 UTC Modified: 2006-07-22 15:33 UTC
From: toby@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Gentoo
Private report: No CVE-ID: None
 [2006-07-22 12:19 UTC] toby@php.net
Description:
------------
The new constant PATHINFO_FILENAME was already added to the pathinfo() docs, but the example was not updated, yet.

Index: en/reference/filesystem/functions/pathinfo.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/filesystem/functions/pathinfo.xml,v
retrieving revision 1.11
diff -u -p -d -r1.11 pathinfo.xml
--- en/reference/filesystem/functions/pathinfo.xml      17 Jul 2006 10:50:14 -0000      1.11
+++ en/reference/filesystem/functions/pathinfo.xml      22 Jul 2006 12:18:17 -0000
@@ -41,6 +41,7 @@ $path_parts = pathinfo('/www/htdocs/inde
 echo $path_parts['dirname'], "\n";
 echo $path_parts['basename'], "\n";
 echo $path_parts['extension'], "\n";
+echo $path_parts['filename'], "\n";   // since 5.2.0
 ?>
 ]]>
       </programlisting>
@@ -52,6 +53,7 @@ echo $path_parts['extension'], "\n";
 /www/htdocs
 index.html
 html
+index
 ]]>
       </screen>
      </example>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-22 15:33 UTC] nlopess@php.net
patch applied, thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 14:00:01 2025 UTC