Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98010 invoked from network); 25 Feb 2013 10:00:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2013 10:00:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=ibmurai@me.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ibmurai@me.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain me.com designates 17.158.232.237 as permitted sender) X-PHP-List-Original-Sender: ibmurai@me.com X-Host-Fingerprint: 17.158.232.237 nk11p03mm-asmtp002.mac.com Solaris 10 1203 Received: from [17.158.232.237] ([17.158.232.237:42044] helo=nk11p03mm-asmtp002.mac.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/A2-10787-F263B215 for ; Mon, 25 Feb 2013 05:00:16 -0500 Received: from [192.168.1.64] (188-182-36-146-static.dk.customer.tdc.net [188.182.36.146]) by nk11p03mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-26.01(7.0.4.26.0) 64bit (built Jul 13 2012)) with ESMTPSA id <0MIR00MM5T45ZWC0@nk11p03mm-asmtp002.mac.com> for internals@lists.php.net; Mon, 25 Feb 2013 10:00:07 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327,1.0.431,0.0.0000 definitions=2013-02-25_02:2013-02-22,2013-02-25,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1302250032 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Message-ID: <01F30F77-B22D-40CE-ADF1-AC1C488FE39D@me.com> Date: Mon, 25 Feb 2013 11:00:04 +0100 To: internals@lists.php.net MIME-version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) Subject: Late FQCN resolution using ::class From: ibmurai@me.com (Jens Riisom Schultz) Hi everybody, I have read up on this, and done some testing. First up, my findings with PHP5.5 alpha5: I'm trying to late resolve a class name contained in a variable to the = FQCN. I understand that this is hard (maybe even impossible) with the = current implementation, because class name resolution happens compile = time, but eval("return $me::class;") simply returns something that is = weird. I guess what I'm trying to ask is whether it would be impossible to = support late FQCN resolution in any way? It would be very useful for = frameworks to be able to do this. - Jens Riisom Schultz=