Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26414 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10606 invoked by uid 1010); 8 Nov 2006 00:58:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10591 invoked from network); 8 Nov 2006 00:58:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2006 00:58:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:53552] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/48-40429-7CB21554 for ; Tue, 07 Nov 2006 19:58:49 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 48FB11FA929; Wed, 8 Nov 2006 01:58:45 +0100 (CET) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VchdR2swviNS; Wed, 8 Nov 2006 01:58:40 +0100 (CET) Received: from [10.0.13.54] (ip129-15-211-87.adsl2.versatel.nl [87.211.15.129]) by mx1.moulin.nl (Postfix) with ESMTP id A5D441FA7C1; Wed, 8 Nov 2006 01:58:40 +0100 (CET) Message-ID: <45512BBF.3000904@iamjochem.com> Date: Wed, 08 Nov 2006 01:58:39 +0100 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Tony Bibbs CC: internals@lists.php.net References: <45512AD4.1050501@tonybibbs.com> In-Reply-To: <45512AD4.1050501@tonybibbs.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] class defs from file? From: jochem@iamjochem.com (Jochem Maas) Tony Bibbs wrote: > 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'? not really an internals thing - generals list is better. http://nl2.php.net/manual-lookup.php?pattern=token&lang=en should get you what you need. :-) > > --Tony >