Re: RFE to allow dirname($foo, 2)

From: Date: Fri, 24 Jul 2015 00:11:22 +0000
Subject: Re: RFE to allow dirname($foo, 2)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-87257@lists.php.net to get a copy of this message
On Wed, Jul 22, 2015 at 4:55 AM, Remi Collet <remi@fedoraproject.org> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > See https://bugs.php.net/bug.php?id=70112 > > > As this a very small self-contained change, > I don't think it needs a RFE. > > Feedback welcome Shouldn't you check if you are at the root (or cwd)? currently dirname("/foo/bar", PHP_INT_MAX); "hangs" -Hannes

« previous php.internals (#87257) next »