Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23242 invoked from network); 14 Dec 2013 16:32:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2013 16:32:59 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.45 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.128.45 mail-qe0-f45.google.com Received: from [209.85.128.45] ([209.85.128.45:59124] helo=mail-qe0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/B6-11187-A388CA25 for ; Sat, 14 Dec 2013 11:32:58 -0500 Received: by mail-qe0-f45.google.com with SMTP id 6so2648681qea.18 for ; Sat, 14 Dec 2013 08:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ShvS4Qddgpu/PKLmaz2862sDf7TVNnkojPkfD2hPlpk=; b=pyvH3vD44tNe/4tW/RjpVEoRTC0/cYGIoQto3mDa28qzrfnloZdP/tHD1d8Ivq3dtT BNnSnF7BZJcePCWFyhjj7i/fajz78DOE77LLxtr8yhUXRh0XwYj00lbqPbxsayNUwRVk 9Twn8hAnFMo0z0c07w9qwnyBTz0wM/PzNCIdGbQJRF2twSsKUMMBrPByVLud5um558We zhvIe4lgGbxyUFVD0PZpsfUkVq5WNzhWwHapsBGAEeHUOY9CkLx4dZXaKe90Jp4m0gJ+ AlotpoCC5TagR+IAS5kW0xwsDC8bNvpBUYbV1h9KrMCiyZovCMvbTdhuVcFWcOfpqj+f GhKQ== MIME-Version: 1.0 X-Received: by 10.224.47.137 with SMTP id n9mr16272244qaf.47.1387038775003; Sat, 14 Dec 2013 08:32:55 -0800 (PST) Received: by 10.140.37.179 with HTTP; Sat, 14 Dec 2013 08:32:54 -0800 (PST) Received: by 10.140.37.179 with HTTP; Sat, 14 Dec 2013 08:32:54 -0800 (PST) In-Reply-To: <52ABA642.9090206@php.net> References: <52ABA642.9090206@php.net> Date: Sat, 14 Dec 2013 17:32:54 +0100 Message-ID: To: Stefan Neufeind Cc: php-dev Content-Type: multipart/alternative; boundary=001a1130d20279504504ed812198 Subject: Re: [PHP-DEV] Proposal for RFC: get_class_constants() From: tyra3l@gmail.com (Ferenc Kovacs) --001a1130d20279504504ed812198 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013.12.14. 1:29, "Stefan Neufeind" ezt =C3=ADrta: > > 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 =3D new \ReflectionClass($class); > $constants =3D $reflection->getConstants(); > > > Kind regards, > Stefan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Please go for it! --001a1130d20279504504ed812198--