On Wed, Jul 22, 2015 at 4:55 AM, Remi Collet <[email protected]> wrote: > See https://bugs.php.net/bug.php?id=70112 > I'm not inherently against it, but this really really sounds like a job for a userspace function.
function dirname_n($path, $n) {
while (($path !== '.') && $n--) $path = dirname($path);
return $path;
}
-Sara
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
