Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46574 invoked by uid 1010); 9 Feb 2006 00:31:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46558 invoked from network); 9 Feb 2006 00:31:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2006 00:31:04 -0000 Received: from ([127.0.0.1:23731]) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with ECSTREAM id 7F/01-35443-84D8AE34 for ; Wed, 08 Feb 2006 19:31:04 -0500 X-Host-Fingerprint: 194.73.73.211 c2bthomr03.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.211:17557] helo=c2bthomr03.btconnect.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2F/75-56538-2DE6AE34 for ; Wed, 08 Feb 2006 17:21:06 -0500 Received: from VaioCen (host81-138-95-202.in-addr.btopenworld.com [81.138.95.202]) by c2bthomr03.btconnect.com (MOS 3.5.9-GR) with ESMTP id EEO85281; Wed, 8 Feb 2006 22:20:16 GMT Message-ID: <000e01c62cfd$ef7443c0$ca5f8a51@VaioCen> To: Date: Wed, 8 Feb 2006 22:20:56 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C62CFD.EE614D20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Writing PHP extensions without re-building PHP From: an.dromeda@btconnect.com ("Andrew Mather") ------=_NextPart_000_000B_01C62CFD.EE614D20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All the examples I have found regarding writing PHP extensions assume that I should want to rebuild the PHP core module. I consider this approach undesirable for several reasons: a) I don't expect to recompile IIS, or SqlServer just to build an add-on b) if I get the rebuild wrong, I risk corrupting an environment that = currently at least works c) I would have to understand the intricacies of autoconf/make etc. for = Unix/Apache/PHP all of which are far beyond my interest/experience. If there was a decent template/tutorial eg: Hello World that I could = then extend, I could apply my C/C++ knowledge to extending that template, rather than = having first to become a Linux/Apache/PHP guru at a level that I simply don't = aspire to. If someone has or could build and document such an example (I am running Suse Linux 9.3, with PHP/MySql as distributed in that package), I would = be delighted to hear about it. If none such exists, I should even be happy to commission such, for = money. (I know Linux prides itself on being free, but in the real world, beer = and sandwiches cost money, and this roadblock is preventing a client project from = progressing, so I believe remuneration to be in order, if it moves us forward). Cheers, Andrew Mather. ps: the example given at http://www.zend.com/php/internals/ makes sense, = as such, but while the first two command (phpize, ./configure, seem to work, the = make command throws errors like confetti, based on the lack of php.h, zend.h etc in = an environment that was installed 'out of the box' of Suse 9.3, rather than to the bespoke = 'we can rebuild it' requirements of the example.=20 Making such an example compile and run as a dynamically loadable module = in the described environment would be my goal, allowing me to extend it as = required later. ------=_NextPart_000_000B_01C62CFD.EE614D20--