Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44956 invoked from network); 23 May 2008 14:51:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2008 14:51:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=markright@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=markright@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: markright@gmail.com X-Host-Fingerprint: 209.85.146.179 wa-out-1112.google.com Received: from [209.85.146.179] ([209.85.146.179:18950] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/60-35754-10AD6384 for ; Fri, 23 May 2008 10:51:47 -0400 Received: by wa-out-1112.google.com with SMTP id v27so671769wah.17 for ; Fri, 23 May 2008 07:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=l/CxRWDjJeDcmgzFMZvdfhDYwul0P0IwxvK+MggxU28=; b=mN0EYbWtCmuW/x1ckUNVhY02gnt/PvXR5iYpVN2btLW6iKOmlpPPLzUkKxMHR9nFATDda1lIsKdoLSQ7Syk5joSCJxExO/KthYmzzSxd9htBZiR16oHdfrEfWL1qbHRNS82NEVDQGctin1r14rHME++/yr899iiB2w1PDDMAxR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qEyEFwFGOgFX0E/dC2d8+uh1SttsiI3x2lkVtCPPJ9bR9Ei1cK+85Vr/IAX7saxWl/folb1uDZw16ElHrUiFQ+O8pxt4P3u5Yw+nWa8k8VYzyjiiaZ+7Ki2jDBdAxXcOl7Lu63B0rfBlBghbwi4llp4YqM9ps3Jlm+kmPJ/0j+4= Received: by 10.114.106.1 with SMTP id e1mr1842114wac.95.1211554302379; Fri, 23 May 2008 07:51:42 -0700 (PDT) Received: by 10.114.208.10 with HTTP; Fri, 23 May 2008 07:51:42 -0700 (PDT) Message-ID: <2fd662a00805230751s358ca3e8h13e372491cb44170@mail.gmail.com> Date: Fri, 23 May 2008 16:51:42 +0200 To: "Astro [GTalk]" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23114_7898530.1211554302373" References: Subject: Re: [PHP-DEV] PHP6 new syntax use suggestion From: markright@gmail.com (Marco) ------=_Part_23114_7898530.1211554302373 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > I have a suggestion for upcoming PHP6 as it's a major version change. I > suggest a possibility to use this (example): > > $host = parse_url('http://someurl.com')['host']; > > instead of > > $host = parse_url('http://someurl.com'); > $host = $host['host']; I can't see any real benefit of this change apart from a WTF factor... its possible i'm missing something though! Whats the benefit apart from saving a line of code? Why not just skip the second line and use $host['host'] instead of copying it to $host ? Regards Marco ------=_Part_23114_7898530.1211554302373--