Bug #70112 [Opn->Csd]: [RFE] Allow "dirname" to go up various time
| From: | remi@php.net | Date: | Mon, 27 Jul 2015 13:24:24 +0000 |
| Subject: | Bug #70112 [Opn->Csd]: [RFE] Allow "dirname" to go up various time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194749@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70112&edit=1
ID: 70112
Updated by: remi@php.net
Reported by: remi@php.net
Summary: [RFE] Allow "dirname" to go up various time
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: irrevelant
PHP Version: 7.0.0beta1
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of fedora@famillecollet.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e811770a68641c85d7e49f84f3230b4ed7a1e808
Log: Fix #70112 RFE Allow dirname to go up various times
Previous Comments:
------------------------------------------------------------------------
[2015-07-25 14:59:45] remi@php.net
The following patch has been added/updated:
Patch Name: 0001-Fix-70112-RFE-Allow-dirname-to-go-up-various-times.patch
Revision: 1437836385
URL: https://bugs.php.net/patch-display.php?bug=70112&patch=0001-Fix-70112-RFE-Allow-dirname-to-go-up-various-times.patch&revision=1437836385
------------------------------------------------------------------------
[2015-07-24 21:47:50] ab@php.net
Remi,
as it turns to be a bit more complicated right now, here were my 2 cents. The usage with 1 == levels
is the common case. The current functionality should reside under an if branch, the new
functionality including the levels < 1 and other error check should reside under an else branch.
Does it sound logic?
Thanks
Anatol
------------------------------------------------------------------------
[2015-07-24 16:02:25] jpauli@php.net
I like it.
I'm +1.
It might be a little bit late to contribute it for 7.0, though it is very tiny and self contained.
This is the PHP7 RMs decision now.
------------------------------------------------------------------------
[2015-07-24 08:39:00] remi@php.net
The following patch has been added/updated:
Patch Name: 0003-improve-loop-condition-to-avoid-hang-on-large-value.patch
Revision: 1437727140
URL: https://bugs.php.net/patch-display.php?bug=70112&patch=0003-improve-loop-condition-to-avoid-hang-on-large-value.patch&revision=1437727140
------------------------------------------------------------------------
[2015-07-22 13:58:31] rowan dot collins at gmail dot com
Ah, that makes sense. English is particularly irrational when it comes to abbreviations, and tends
to use fossilized Latinisms. We might say "no. 4", but probably not "what no. is
that?", I guess because "no" is also a word...
Anyway, +1 on including this feature, though I'm not sure if it should be 7.0 or 7.1 at this
point.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=70112
--
Edit this bug report at https://bugs.php.net/bug.php?id=70112&edit=1