Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80412 invoked by uid 1010); 30 Nov 2004 01:04:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80106 invoked from network); 30 Nov 2004 01:03:58 -0000 Received: from unknown (HELO mailgate.mysql.com) (213.136.52.47) by pb1.pair.com with SMTP; 30 Nov 2004 01:03:58 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.12.10/8.12.10) with ESMTP id iAU13u1N024564; Tue, 30 Nov 2004 02:03:56 +0100 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 23186-01; Tue, 30 Nov 2004 02:03:55 +0100 (CET) Received: from [127.0.0.1] (mailsend.mysql.com [10.100.1.123]) (authenticated bits=0) by mail.mysql.com (8.12.10/8.12.10) with ESMTP id iAU13miL028284; Tue, 30 Nov 2004 02:03:50 +0100 Message-ID: <41ABC6F4.7080401@php.net> Date: Tue, 30 Nov 2004 02:03:48 +0100 Reply-To: hartmut@php-groupies.de User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817 X-Accept-Language: en, de MIME-Version: 1.0 To: Jan Zwiegers CC: internals@lists.php.net References: <41AADC63.60907@eagle.co.za> <539695980.20041129213950@marcus-boerger.de> In-Reply-To: <539695980.20041129213950@marcus-boerger.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] extension module for data acquisition From: hartmut@php.net (Hartmut Holzgraefe) Marcus Boerger wrote: > All we can say is just look at the code of other extensions - unfortunatley > it seems there is only documentation living on two legs available otherwise. > However it is relativley easy for an experienced c programmer. Well, some of us have tried to do brain dumps. George Schlossnagle has dedicated part of his "Advanced PHP Programming" book to extension writing (http://www.amazon.com/exec/obidos/ASIN/0672325616) and i have created sort of a code generator called PECL_Gen http://pecl.php.net/package-info.php?package=PECL_Gen Warning: you have to remove one line from the package.xml file before you can install it. It is the line that mentions "void.c" I needed to add it to make the upload process accept the package for now. Documentation is included in the manual.html file within the package, there are also some conference slides on this http://talks.php.net/show/PECL_Gen -- Hartmut Holzgraefe