| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2020-09-27 12:43 UTC] sjon@php.net
 
-Status: Open
+Status: Verified
  [2020-09-27 12:43 UTC] sjon@php.net
  [2020-09-27 12:44 UTC] sjon@php.net
 
-Status: Verified
+Status: Not a bug
  [2020-09-27 12:44 UTC] sjon@php.net
  [2020-09-27 14:29 UTC] divinity76 at gmail dot com
  [2020-09-27 14:35 UTC] divinity76 at gmail dot com
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Description: ------------ running basename("/tmp","tmp") fails to remove the "tmp" suffix from the end of the name. tested on PHP 8.0.0 beta3 running on Linux, and PHP 7.3.7 running on Windows 10. Test script: --------------- <?php var_dump(basename("/tmp","mp")); var_dump(basename("/tmp","tmp")); Expected result: ---------------- string(1) "t" string(0) "" Actual result: -------------- string(1) "t" string(3) "tmp"