Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72743 invoked from network); 14 Dec 2013 00:34:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2013 00:34:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.83.51 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 74.125.83.51 mail-ee0-f51.google.com Received: from [74.125.83.51] ([74.125.83.51:38839] helo=mail-ee0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/21-00859-9A7ABA25 for ; Fri, 13 Dec 2013 19:34:50 -0500 Received: by mail-ee0-f51.google.com with SMTP id b15so1163235eek.24 for ; Fri, 13 Dec 2013 16:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5h0B/0XVNMG/u6lTa++lmDiiT7FLNCfQHyfxzGVPpA4=; b=QkuwPxYcrX1TNdLuNwFCPU0fVX+4y89ofP2Z3+6YC3mH6LMHnWcT5fvzs/ZTD/N3O2 DWc4o8ITAcNb+vsa13XwuMTfXCGZbqKv6u/QP+/WXA2ZouVj+pCQLlfwA7Z6z0WZr69I VvTN4Ob5NNLB2a1Vo6IsHckwOyPtfYdTo1XsLmktUNWU9mf1exsMczD+x4EjoVmbDax0 GmdI4Hp5FDUCTImwOK05rC/tuMh9Dq2w+ULUIPG+O+aV4RAftgjOkLnfz0OfrGcuV3G6 A7lPUK64UqnFWyjj1San1PAeFXGYtkRt8GyouETLFDzX/m3NABOjkXlf80WskIpjcKdj 6GSQ== X-Received: by 10.15.111.201 with SMTP id cj49mr5385270eeb.56.1386981286941; Fri, 13 Dec 2013 16:34:46 -0800 (PST) Received: from ingwies-air.fritz.box (p5B15D42E.dip0.t-ipconnect.de. [91.21.212.46]) by mx.google.com with ESMTPSA id a51sm12499792eeh.8.2013.12.13.16.34.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 16:34:46 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) In-Reply-To: <52ABA642.9090206@php.net> Date: Sat, 14 Dec 2013 01:34:45 +0100 Cc: php-dev Content-Transfer-Encoding: quoted-printable Message-ID: <0CAE0CF1-7059-4B97-81AC-BFB39614F5AB@googlemail.com> References: <52ABA642.9090206@php.net> To: Stefan Neufeind X-Mailer: Apple Mail (2.1822) Subject: Re: [PHP-DEV] Proposal for RFC: get_class_constants() From: ingwie2000@googlemail.com (Kevin Ingwersen) Hi! I don=92t know much about RFC=92s yet - but I would totally vote for = that. There are many use cases for that function, and it wouldn=92t = break anything BC related too. Kind regards, Ingwie Am 14.12.2013 um 01:28 schrieb Stefan Neufeind : > Hi, >=20 > 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. >=20 > Proposal: Create a function get_class_constants() >=20 > It would be similar to get_class_methods() and get_class_vars(). >=20 > 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. >=20 > $reflection =3D new \ReflectionClass($class); > $constants =3D $reflection->getConstants(); >=20 >=20 > Kind regards, > Stefan >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20