Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28634 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57290 invoked by uid 1010); 30 Mar 2007 21:15:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57275 invoked from network); 30 Mar 2007 21:15:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Mar 2007 21:15:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:6201]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 44/FA-01435-CED7D064 for ; Fri, 30 Mar 2007 16:15:25 -0500 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.171 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.171 outbound.mailhop.org FreeBSD 4.6-4.9 Received: from [63.208.196.171] ([63.208.196.171:2786] helo=outbound.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/10-18696-1AFEA064 for ; Wed, 28 Mar 2007 17:43:46 -0500 Received: from cs136054.pp.htv.fi ([213.243.136.54] helo=[192.168.1.100]) by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HWgrm-000Fvt-NB; Wed, 28 Mar 2007 18:43:42 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 213.243.136.54 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: jtaskine Message-ID: <460AEFA1.3070709@sci.fi> Date: Thu, 29 Mar 2007 01:43:45 +0300 Reply-To: sniper@iki.fi User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: internals@lists.php.net CC: iliaa@php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] Allow get_declared_classes() and get_declared_interfaces() return user/internal class/interface separately From: jani.taskinen@sci.fi (Jani Taskinen) This patch allows get_declared_classes and get_declared_interfaces() functions to return the information in associative array with "internal" and "user" keys when passed the optional parameter. And makes them a bit more consistent with similar functions like get_defined_functions().. Example: [jani@localhost php_5_2tst]$ sapi/cli/php -r 'class foobar {} print_r(get_declared_classes(true));'|less Array ( [internal] => Array ( [0] => stdClass [1] => Exception [2] => ErrorException [3] => __PHP_Incomplete_Class [4] => php_user_filter [5] => Directory [6] => DateTime [7] => DateTimeZone ) [user] => Array ( [0] => foobar ) ) --Jani