Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9421 invoked by uid 1010); 8 Nov 2006 00:54:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9406 invoked from network); 8 Nov 2006 00:54:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2006 00:54:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@tonybibbs.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@tonybibbs.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tonybibbs.com designates 216.51.246.17 as permitted sender) X-PHP-List-Original-Sender: tony@tonybibbs.com X-Host-Fingerprint: 216.51.246.17 www.iowaoutdoors.org Linux 2.5 (sometimes 2.4) (4) Received: from [216.51.246.17] ([216.51.246.17:59344] helo=iowaoutdoors.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/08-40429-ADA21554 for ; Tue, 07 Nov 2006 19:54:51 -0500 Received: from localhost (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id EC8644561E for ; Tue, 7 Nov 2006 18:54:49 -0600 (CST) Received: from iowaoutdoors.org ([127.0.0.1]) by localhost (iowaoutdoors.iowaoutdoors.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23017-17 for ; Tue, 7 Nov 2006 18:54:48 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id 74CF144E5E for ; Tue, 7 Nov 2006 18:54:48 -0600 (CST) Message-ID: <45512AD4.1050501@tonybibbs.com> Date: Tue, 07 Nov 2006 18:54:44 -0600 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at iowaoutdoors.org Subject: class defs from file? From: tony@tonybibbs.com (Tony Bibbs) First post here so be gentle ;-) I've got a unique need to get the class definitions from a file. Now I can write the string manipulation necessary to do this myself with the help of some regex-fu but I was wondering if it wouldn't be possible to add a method like: array getClassDefs(string $someFileName) Like I said, I can do it with some regex work but given the PHP engine has to do this it'd seem like a nice addition to the core oo-functions. This may be a case where I've got too specific a need to warrant community interest but I'd think there might be other cases where such a method would prove handy. Thoughts (other than the obligatory 'p1ss-off'? --Tony