Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59516 invoked by uid 1010); 19 Jun 2007 23:16:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59500 invoked from network); 19 Jun 2007 23:16:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2007 23:16:30 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 66.79.163.178 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 66.79.163.178 bluga.net Linux 2.5 (sometimes 2.4) (4) Received: from [66.79.163.178] ([66.79.163.178:60755] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/F8-47650-DC368764 for ; Tue, 19 Jun 2007 19:16:30 -0400 Received: from mail.bluga.net (mail.bluga.net [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 6C84087375; Tue, 19 Jun 2007 16:21:16 -0700 (PDT) Received: from [192.168.0.106] (CPE-72-133-52-174.neb.res.rr.com [72.133.52.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 175A987362; Tue, 19 Jun 2007 16:21:15 -0700 (PDT) Message-ID: <46786442.50500@chiaraquartet.net> Date: Tue, 19 Jun 2007 18:18:26 -0500 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Jordan Wambaugh CC: internals@lists.php.net References: <200706191353.53163.jordan.wambaugh@forrent.com> In-Reply-To: <200706191353.53163.jordan.wambaugh@forrent.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Creating a class in a php extension From: greg@chiaraquartet.net (Gregory Beaver) Jordan Wambaugh wrote: > I've just recently begun writing PHP extensions for the first time. Sara > Golemon's article on extension development has been a priceless resource for > me, but I haven't been able to find any documentation on how to define a > class, give it methods and properties etc within an extension. Is there any > documentation on this? If not, can someone point me in the right direction? Hi Jordan, The extensions in ext/ and pecl/ (particularly the simple ones like pecl/spread http://cvs.php.net/viewvc.cgi/pecl/spread/php_spread.c?view=markup) demonstrate the process. I find http://lxr.php.net extremely useful for quickly finding the connections in source code. Greg