Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19877 invoked from network); 14 Apr 2012 22:00:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2012 22:00:59 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@googlemail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:46376] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/F4-33137-893F98F4 for ; Sat, 14 Apr 2012 18:00:57 -0400 Received: by bkcje9 with SMTP id je9so3349101bkc.29 for ; Sat, 14 Apr 2012 15:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=L2XdLJpYo0qnRLl4wv4CuSJYKrDzJVD+rGwaqGFx9v8=; b=O4l2PODoLStPwHv4FCsRqWmR4x6PiECyHH3y+g4yEdb2fVuclBVHhOfqm/+XIyjllo gD3TyX6tpdoLkSJLCuPgCD8qD2u8bvrZgv1FWS4xIM/0YPS2lEETrS8tkU0rtlzx4PHY YSoSNJKM5JEzFcIKVbpZ+BPUlUFDX4ZF0D59OHeBGtnujrd0Auu2xyu0vnymR78SVn5h nS/BCN46Bwv8+qs205mJYihp0OAE/6Ai+rGO+Y8vzFluqeV7ubT0V1FoRCRJx5OzBUHE Ll8KUTwIdFp6HxdT+jHL6iandHVKTYrAmeMPF8xEXUAG+pGc53SHK4G7IlicgWd1E31w mG0w== Received: by 10.204.132.72 with SMTP id a8mr1843029bkt.42.1334440853338; Sat, 14 Apr 2012 15:00:53 -0700 (PDT) Received: from [192.168.24.2] (91-66-42-108-dynip.superkabel.de. [91.66.42.108]) by mx.google.com with ESMTPS id zx16sm23002821bkb.13.2012.04.14.15.00.52 (version=SSLv3 cipher=OTHER); Sat, 14 Apr 2012 15:00:52 -0700 (PDT) Message-ID: <4F89F393.3040505@googlemail.com> Date: Sun, 15 Apr 2012 00:00:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <4F89D4F1.8070009@ralphschindler.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword From: krebs.seb@googlemail.com (Sebastian Krebs) Am 14.04.2012 23:14, schrieb Marco Pivetta: > I used to implement `public static function getClass() { return > get_called_class(); }`, so I really like this one, makes it also easier for > IDEs when refactoring code :) > > I was wondering about `class A { const CLASS = 'hello'; }` but that would > cause an unexpected `T_CLASS`, so I guess there's no conflicts... I have class A { const _CLASS = __CLASS__; } in many classes. This feature would help a lot. > > > Marco Pivetta > > http://twitter.com/Ocramius > > http://marco-pivetta.com >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >