Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71231 invoked from network); 14 Dec 2013 00:28:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2013 00:28:56 -0000 Authentication-Results: pb1.pair.com header.from=neufeind@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=neufeind@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 91.184.32.3 as permitted sender) X-PHP-List-Original-Sender: neufeind@php.net X-Host-Fingerprint: 91.184.32.3 mail.speedpartner.de Received: from [91.184.32.3] ([91.184.32.3:33145] helo=mail.speedpartner.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/C0-00859-746ABA25 for ; Fri, 13 Dec 2013 19:28:56 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.speedpartner.de (Postfix) with ESMTP id 8C99D6092E for ; Sat, 14 Dec 2013 01:28:50 +0100 (CET) Received: from mail.speedpartner.de ([127.0.0.1]) by localhost (mail.speedpartner.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFt-gUWoPQIB for ; Sat, 14 Dec 2013 01:28:50 +0100 (CET) Received: from collab.speedpartner.de (collab.speedpartner.de [91.184.32.10]) by mail.speedpartner.de (Postfix) with ESMTP id 7A24260627 for ; Sat, 14 Dec 2013 01:28:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by collab.speedpartner.de (Postfix) with ESMTP id 6BB01D28E04 for ; Sat, 14 Dec 2013 01:28:49 +0100 (CET) X-Virus-Scanned: amavisd-new at collab.speedpartner.de Received: from collab.speedpartner.de ([127.0.0.1]) by localhost (collab.speedpartner.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q8EdE4MyVaic for ; Sat, 14 Dec 2013 01:28:49 +0100 (CET) Received: from [192.168.4.20] (ip-176-199-169-129.unitymediagroup.de [176.199.169.129]) by collab.speedpartner.de (Postfix) with ESMTPSA id 0166BD27BEB for ; Sat, 14 Dec 2013 01:28:48 +0100 (CET) Message-ID: <52ABA642.9090206@php.net> Date: Sat, 14 Dec 2013 01:28:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Proposal for RFC: get_class_constants() From: neufeind@php.net (Stefan Neufeind) Hi, following the howto for RFCs and since this would be my first one, I'd like to ask for your thoughts if such an RFC might find approval. If yes, I'll be happy to work on it. Proposal: Create a function get_class_constants() It would be similar to get_class_methods() and get_class_vars(). Currently the same behavious is only possible by the help of reflection, which due to the nature of reflection takes a bit more work/cpu-cycles. $reflection = new \ReflectionClass($class); $constants = $reflection->getConstants(); Kind regards, Stefan