| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2015-02-15 21:20 UTC] cmbecker69 at gmx dot de
  [2016-06-22 14:16 UTC] cmb@php.net
 
-Summary:     pathinfo() incorrectly parsing hidden file
              paths
+Summary:     pathinfo() doesn't document parsing of
              dot-files
-Status:      Open
+Status:      Verified
-Type:        Bug
+Type:        Documentation Problem
-Assigned To:
+Assigned To: cmb
  [2016-06-22 14:17 UTC] cmb@php.net
  [2016-06-22 14:18 UTC] cmb@php.net
 
-Status: Verified
+Status: Closed
  [2016-06-22 14:18 UTC] cmb@php.net
  [2020-02-07 06:07 UTC] phpdocbot@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Description: ------------ The function pathinfo() assumes all files that have a basename starting with a period only have an extension. This bug is present in at least 5.3.x to 5.5.x. Test script: --------------- # copy & paste into a shell php -r "print_r(pathinfo('/some/path/.test'));" Expected result: ---------------- Array ( [dirname] => /some/path [basename] => .test [extension] => [filename] => .test ) Actual result: -------------- Array ( [dirname] => /some/path [basename] => .test [extension] => test [filename] => )