Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10999 invoked from network); 26 Jul 2015 18:44:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2015 18:44:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=kelerest123@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kelerest123@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.54 as permitted sender) X-PHP-List-Original-Sender: kelerest123@gmail.com X-Host-Fingerprint: 209.85.218.54 mail-oi0-f54.google.com Received: from [209.85.218.54] ([209.85.218.54:34336] helo=mail-oi0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/C0-06606-69A25B55 for ; Sun, 26 Jul 2015 14:44:38 -0400 Received: by oigd21 with SMTP id d21so41775670oig.1 for ; Sun, 26 Jul 2015 11:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=gnhYMMzUXKBOC1s+/FdVIl5tDVXCUo4xGe/NuUvI38E=; b=qdhpuYmJ/7HnwwoHodC/KdmYCe8JJUMHM/s6lvfh48qHzoRoIKEZANSD+ZGm1X+WWv T2hcR/a5Fa/0etl+yx/ihRO1LlelNiQOn+9wJi+qxCUt7s+3i2TeQpXzwVM5wLFSSoI5 Rf89zWeAmGbSUkVvNr1KO0cQJnemZt62vZ+G8kPTktBDb+yzfRiigEDuyUTw13+zR4F0 d2UEXp/QQAzKoF37mbKVi5503F9ZAPHBHf8FZPpsYs346wEy1kBlWx3NeCEETCsMqhsi LEMMRg4zAq4ib2DQPDcbR5JmA6T6I/YJgSAWukw6bwrDfWVuq/1SCA15M/k/+Aj4y1MO VNXw== X-Received: by 10.202.92.6 with SMTP id q6mr23018749oib.11.1437936275274; Sun, 26 Jul 2015 11:44:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.109.33 with HTTP; Sun, 26 Jul 2015 11:44:15 -0700 (PDT) In-Reply-To: References: <55AF84C1.8070403@fedoraproject.org> <55B3991A.4060107@birkholz.biz> Date: Sun, 26 Jul 2015 20:44:15 +0200 Message-ID: To: Scott Arciszewski Cc: Dennis Birkholz , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFE to allow dirname($foo, 2) From: kelerest123@gmail.com (=?UTF-8?B?SmFrdWIgS3Viw63EjWVr?=) Hi Scott! 2015-07-25 19:42 GMT+02:00 Scott Arciszewski : > What's easier to read and less likely to result in bugs? > > require_once __DIR__ . '/../../../../autoload.php'; > > or > > require_once dirname(__FILE__, 5) . '/autoload.php'; That's on everyone's own, but for me it's the first. However, it couldn't be a disaster having ability to choose other option for those, who are not familiar with relative paths. :-) Best regards, Kubo2, Jakub Kub=C3=AD=C4=8Dek