Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76535 invoked by uid 1010); 1 Aug 2004 18:23:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76456 invoked from network); 1 Aug 2004 18:23:18 -0000 Received: from unknown (HELO milestone.prohost.de) (216.71.32.21) by pb1.pair.com with SMTP; 1 Aug 2004 18:23:18 -0000 Received: from sheytan (pD9E33E13.dip.t-dialin.net [217.227.62.19]) by milestone.prohost.de (8.11.6/8.11.6) with SMTP id i71INGP18968 for ; Sun, 1 Aug 2004 20:23:16 +0200 Date: Sun, 1 Aug 2004 20:35:49 +0200 To: internals@lists.php.net Message-ID: <20040801203549.0187f752@sheytan> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: get_defined_constants() From: nathan@hamevents.de (Nathan) 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