|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patches0001-Fix-70112-RFE-Allow-dirname-to-go-up-various-times.patch (last revision 2015-07-25 14:59 UTC by remi@php.net)0003-improve-loop-condition-to-avoid-hang-on-large-value.patch (last revision 2015-07-24 08:39 UTC by remi@php.net) 0002-rename-arg-nb-to-levels-frenchism.patch (last revision 2015-07-22 12:39 UTC by remi@php.net) 0001-Fix-70112-RFE-Allow-dirname-to-go-up-various-time.patch (last revision 2015-07-22 11:46 UTC by remi@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-22 11:46 UTC] remi@php.net
[2015-07-22 12:19 UTC] rowan dot collins at gmail dot com
[2015-07-22 12:30 UTC] remi@php.net
[2015-07-22 12:39 UTC] remi@php.net
[2015-07-22 13:58 UTC] rowan dot collins at gmail dot com
[2015-07-24 08:39 UTC] remi@php.net
[2015-07-24 16:02 UTC] jpauli@php.net
[2015-07-24 21:47 UTC] ab@php.net
[2015-07-25 14:59 UTC] remi@php.net
[2015-07-27 13:24 UTC] remi@php.net
[2015-07-27 13:24 UTC] remi@php.net
-Status: Open
+Status: Closed
[2015-08-04 20:54 UTC] ab@php.net
[2016-07-20 11:37 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ We can find tons of code with $a = dirname(dirname($b)); $c = dirname(dirname(dirname(__DIR__))); etc Could be nice to be able to write $a = dirname($b, 2); $c = dirname(__DIR__, 3); etc Proposal: Add a new "nb" optional parameter. Function [ <internal:standard> function dirname ] { - Parameters [2] { Parameter #0 [ <required> $path ] Parameter #1 [ <optional> $nb ] } } As a minor, self-contained change, could probably target 7.0