Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27043 invoked by uid 1010); 8 Aug 2004 19:15:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26993 invoked from network); 8 Aug 2004 19:15:53 -0000 Received: from unknown (HELO spawn.leetspeak.org) (217.28.101.185) by pb1.pair.com with SMTP; 8 Aug 2004 19:15:53 -0000 Received: (qmail 2765 invoked from network); 8 Aug 2004 21:15:55 +0200 Received: from pd9547965.dip.t-dialin.net (HELO ?192.168.1.11?) (cm@217.84.121.101) by molly.zwonet.de with AES256-SHA encrypted SMTP; 8 Aug 2004 21:15:55 +0200 Message-ID: <41167BE0.7010509@leetspeak.org> Date: Sun, 08 Aug 2004 21:15:44 +0200 User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ron Korving CC: internals@lists.php.net References: <20040801203549.0187f752@sheytan> <20040808184602.18508.qmail@pb1.pair.com> In-Reply-To: <20040808184602.18508.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: get_defined_constants() From: cm@leetspeak.org (Michael Walter) The latter is much more readable, though. Cheers, Michael Ron Korving wrote: > it's a nice idea, and personally, i would prefer a simple boolean parameter > instead of constants where there's only 2 possibilities anyway.. > > "Nathan" wrote in message > news:20040801203549.0187f752@sheytan... > >>Dear List, >> >>i was using the get_defined_constants function the first time today and > > sadly for me i read in the man-pages that it displays _all_ defined > constants. > >>Wouldn't it make sense to implement a function like > > get_user_defined_constants which would only display those constants > define()ed by the user during the development time? If it's not worth a > function maybe an parameter would be nice, like > >>// return an array of constants defined by the user using define(); >>get_defined_constants(C_USER) >> >>// return an array with all defined constants >>get_defined_constants(C_ALL) >> >> >>This would also apply to the functions get_defined_functions and > > get_defined_vars. Maybe there is already a way to figure such things out, > but i haven't found anything in the man-pages. > >>I would be glad to know if something alike exists, or if not, why it > > wouldn't make sense. > >>Thanks in advance, >>Nathan >> >> >>PS: Please CC me, as i'm not on the list > >