Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27715 invoked from network); 31 Dec 2012 00:55:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2012 00:55:28 -0000 Authentication-Results: pb1.pair.com header.from=zardozrocks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zardozrocks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: zardozrocks@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:33657] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/B1-33102-F72E0E05 for ; Sun, 30 Dec 2012 19:55:28 -0500 Received: by mail-pb0-f42.google.com with SMTP id rp2so6814415pbb.1 for ; Sun, 30 Dec 2012 16:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Wa2uDZqv3+judz0Ky3H6QZjXZbhQp5QxMS0Vb48OHGg=; b=v95bDfuyNuLCTr5+KpfTyJkwsFWt9qE4jNIde7QIYKekG6oJnLV5YJ+AEdOkc5+ClG GvxATw0rw13djGCirF+XjuOyrTnItgjrnY3hpPf8IwUMgBW5dBtA7NsEjaAh6T3tZtxc Bo6DmJtB4kwnaCnPER7xZnJyRDBA2P0BSiX6rnR9Kyzcu8LbcwP5MT3aj+1L5pRX6ZHd 5W5N3a3xUF/ZfulRhTnCVAEKdw1/LvvcknCqy4XZvqIFhMtTAUmyGDsqTvuv3TSNzBbi 4d++nYf+ZHxdtDrlyB+kI3SdRlPv7OFABXacOWgLoVHnAF7+Z87ECEME3mNnxlcUh3QZ fqDQ== X-Received: by 10.68.227.97 with SMTP id rz1mr123195437pbc.54.1356915325374; Sun, 30 Dec 2012 16:55:25 -0800 (PST) Received: from [192.168.1.100] (cpe-76-173-57-55.socal.res.rr.com. [76.173.57.55]) by mx.google.com with ESMTPS id t5sm24662946paw.20.2012.12.30.16.55.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Dec 2012 16:55:23 -0800 (PST) Message-ID: <50E0E277.9070406@gmail.com> Date: Sun, 30 Dec 2012 16:55:19 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: internals@lists.php.net References: <1356906114.11165.3.camel@i5> In-Reply-To: <1356906114.11165.3.camel@i5> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] writing pecl's? From: zardozrocks@gmail.com ("J. Adams") Please note: I'm hardly an advanced developer and have yet to produce any viable PHP extension. That said, I have found this book to be helpful: http://www.amazon.com/Extending-Embedding-PHP-Sara-Golemon/dp/067232704X All these links and books are probably dated in some respects, but will help get you started. I have found that the source itself relies heavily on macro definitions in the code. This source browser has been extremely useful for me: http://lxr.php.net/ On 12/30/2012 2:21 PM, Lars Nielsen wrote: > Hi, > > I am looking at how to write an extension for php, and i have found an > article on zend.com from 2005 which works fine with my local php 5.3. > > My question is should i be worried that this article is almost 8 years > old? Is there some more recent articles? Or is this the way to do it? > > http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/ > > Med venlig hilsen / Best Regards > > Lars Nielsen > email : lars@lfweb.dk > > >