Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37839 invoked from network); 24 Jul 2015 00:11:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2015 00:11:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:36562] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/33-13746-EA281B55 for ; Thu, 23 Jul 2015 20:11:26 -0400 Received: by lagw2 with SMTP id w2so4541744lag.3 for ; Thu, 23 Jul 2015 17:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C6VlT7uQ/odo7Fvj/eDVZBFd7i2to+ij6dc/amg4iW4=; b=B/9GPJSQwLGh76aZePDo1/fzd2WKrLfIW4UzD8nLU8aHQmI+AkYgljfdqPs7hGPijY HsxX5135MfTWY8QcLtqeJoH9JzND4pGZt/w2TciU1HvJtq0zy8VMH8iTR2f4E17MgkKb 6u5lNYWI99Sdzvoypy5OF0pE8Y5cF0TNUGdCPMxo3ujeNpWoo89xYMyX29mMWyOpr3OH Yh1Va3Mmj6eBg8fybDITVFKOCnVMditFWOkg4meF15jsyIPxsiTNEYWU0OquiM+03frC Apb9VxCr2XRaVlHrFm64OZTV5eyfz3fQjBImsNYanF/PYO4LdrP8242Or1BSGCuT2Y5j q+2A== MIME-Version: 1.0 X-Received: by 10.112.25.69 with SMTP id a5mr10621666lbg.16.1437696682937; Thu, 23 Jul 2015 17:11:22 -0700 (PDT) Received: by 10.25.213.213 with HTTP; Thu, 23 Jul 2015 17:11:22 -0700 (PDT) In-Reply-To: <55AF84C1.8070403@fedoraproject.org> References: <55AF84C1.8070403@fedoraproject.org> Date: Thu, 23 Jul 2015 17:11:22 -0700 Message-ID: To: Remi Collet Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFE to allow dirname($foo, 2) From: hannes.magnusson@gmail.com (Hannes Magnusson) On Wed, Jul 22, 2015 at 4:55 AM, Remi Collet 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