Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64589 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56529 invoked from network); 6 Jan 2013 01:15:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 01:15:45 -0000 Authentication-Results: pb1.pair.com header.from=hanskrentel@yahoo.de; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=hanskrentel@yahoo.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain yahoo.de from 77.238.189.216 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hanskrentel@yahoo.de X-Host-Fingerprint: 77.238.189.216 nm15-vm0.bullet.mail.ird.yahoo.com Received: from [77.238.189.216] ([77.238.189.216:46324] helo=nm15-vm0.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/32-62408-F30D8E05 for ; Sat, 05 Jan 2013 20:15:43 -0500 Received: from [77.238.189.230] by nm15.bullet.mail.ird.yahoo.com with NNFMP; 06 Jan 2013 01:15:40 -0000 Received: from [212.82.108.237] by tm11.bullet.mail.ird.yahoo.com with NNFMP; 06 Jan 2013 01:15:40 -0000 Received: from [127.0.0.1] by omp1002.mail.ird.yahoo.com with NNFMP; 06 Jan 2013 01:15:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 505143.30817.bm@omp1002.mail.ird.yahoo.com Received: (qmail 41050 invoked by uid 60001); 6 Jan 2013 01:15:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1357434940; bh=P38JQxmWYoarQmHTd6psc16goOYP6B9YlpDVN9PLQRA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6lXo04PGVBC0wAU6G89ZJ/b1qAN0omclqPtDHyS/cYfp86B5m3sUMhMnTVnisXZfBg6S45QTsJrMAUnV3nnki6kDYDDFei+/B0J/qd5Y5iB5MvEjVWfZLSUOSKi/PExYFH9c8Q8vJwmjzjSFxf/wwD1aL6CukKRac3WZty1ya48= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EAYgrUutC5EbMs+7Qwup0W72Z4pY58kOReEv0R+hE5n8MA1QReGBdea7llQxgyS/PM7trWCJYXGcG2rIZVtqvanUEccdJJnMkSf2eN/SBxT0y97M/FIIDSgj7sTpqDxnJRKDE236MlTT+jVUyNM/5PnwLSFd7g8mb8isK4Zk19U=; X-YMail-OSG: IyvxLpMVM1m6Qjpc2bqng2BcSMwaVw4Dc.sb0CvTDZsgdQF Es9LGvfcKvrpfhc7lFD93fxvKgZ4wGm9LDdW9_exV.FiZapaB8q9_T7Ff7Pg hnE.afzPRLR1AbKgvs2TsDqgeOd2x1aNX_XnRu0f9pcKGJpASQjBmdxNYaeV HpnuXG5N6U2exY.ueAfeSj92_tKqCsSG0Kzisn5Ntvc5wOTo9fAW9Zd47L3t YGyni_tvV5Lsv0rW9KuR8czVfzvGGGayzc6dmpNU77AzNzAWdFgUSf4sNT7m 0WdNkuZQtFplsgv1CmKKvNf9M81fz7Ikmz4DxdpxY6DmWiRMPHj0B7IRPcMt H2LLUIcGTKZCtOnFUgea8wobqsarDFF0pF5OS27baLpG72VphCoQ2CTDvSb9 YYCOBxISqGHicXwRhn7UMm.SgN09gJriUks5SLrinc4ZD72n1AfDVk0VDSay WePRRPp.49wXXXWvslLH.QqKbg6vyI_pU Received: from [79.225.23.253] by web133006.mail.ir2.yahoo.com via HTTP; Sun, 06 Jan 2013 01:15:40 GMT X-Rocket-MIMEInfo: 001.001,SSBqdXN0IHJ1biBvdmVyIHRoaXMgYSBmZXcgdGltZXMgbGF0ZWx5IChpdCBpcyBhIGJpdCBpbmRpcmVjdCBiZWNhdXNlIG9mIG5vdCBoYXZpbmcgbXVjaCBsb2dpYyBpbiB0aGUgb3ZlcmFsbCBzeW50YXgsIGJ1dCBwcm9iYWJseSBub3QgdGhhdCBiYWQpLCBmb3IgUEhQcyBsaXN0KCkgY29uc3RydWN0IEkgdGhpbmsgaXQgd291bGQgYmUgbmljZSBiZWluZyBhYmxlIHRvIGNhc3QgdGhlIGFzc2lnbm1lbnRzIG9uIHRoZSBmbHk6CgrCoMKgwqAgbGlzdCgoc3RyaW5nKSAkbmFtZSkgPSBhcnJheShuZXcgU3BsRmkBMAEBAQE- X-Mailer: YahooMailWebService/0.8.129.483 Message-ID: <1357434940.3980.YahooMailNeo@web133006.mail.ir2.yahoo.com> Date: Sun, 6 Jan 2013 01:15:40 +0000 (GMT) Reply-To: hakre To: "internals@lists.php.net" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Casting in list() From: hanskrentel@yahoo.de (hakre) I just run over this a few times lately (it is a bit indirect because of no= t having much logic in the overall syntax, but probably not that bad), for = PHPs list() construct I think it would be nice being able to cast the assig= nments on the fly:=0A=0A=A0=A0=A0 list((string) $name) =3D array(new SplFil= eInfo(__FILE__));=0A=0A(yes this example is not very creative but should be= enough for a brief illustration).=0A=0AWould this be possible? I know some= folks do not like list, but on the other hand, things like these don't wor= k in PHP:=0A=0A=A0=A0=A0 $name =3D (string) ($array ? : [new SplFileInfo(__= FILE__)])[0]=0A=0Aand having casting list list() can be handy then.=0A=0AIs= this hard to add to core PHP?=0A=0A-- hakre=0A