Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97125 invoked by uid 1010); 11 Feb 2006 00:13:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97110 invoked from network); 11 Feb 2006 00:13:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2006 00:13:27 -0000 X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from ([192.38.9.232:7012] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D6/9D-35443-52C2DE34 for ; Fri, 10 Feb 2006 19:13:25 -0500 Received: from foxbox (IGLD-84-228-50-112.inter.net.il [84.228.50.112]) by gw2.emini.dk (Postfix) with ESMTP id 9093FA2986; Sat, 11 Feb 2006 01:13:20 +0100 (CET) Message-ID: <013c01c62e9f$f83c7fb0$6402a8c0@foxbox> Reply-To: "Steph Fox" To: "Hartmut Holzgraefe" , "Andrew Mather" Cc: References: <00d601c62e50$2b3f7c00$ca5f8a51@VaioCen> <43ECD4EE.2020903@php.net> Date: Sat, 11 Feb 2006 02:13:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit 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: Re: [PHP-DEV] Dead C Scrolls - Missing Code for Writing New Extensionswithout recompiling PHP From: steph@zend.com ("Steph Fox") Ouf, Hartmut, does it make 'the new win32 build system' config files too? /me hasn't tried, just wants to know... ----- Original Message ----- From: "Hartmut Holzgraefe" To: "Andrew Mather" Cc: Sent: Friday, February 10, 2006 8:01 PM Subject: Re: [PHP-DEV] Dead C Scrolls - Missing Code for Writing New Extensionswithout recompiling PHP > Andrew Mather wrote: >> i) a walkthrough of the exact steps + sample code to write an >> extension without >> requiring re-compilation of Php and without access to Php source >> code > > maybe its time for a shameless plug one more time: > > http://pear.php.net/package/CodeGen_PECL/docs > > this approach will shield you from autoconf/make details as > much as possible, it will also generate windows VS 6.0 .dsp > project files, too > >> ii) as above but with access to Php source code > > its not mentioned in the above docs, but compiling the generated > extension code staticly into PHP just requires these simple steps: > > - place the generated code directory into PHPs ext/ directory > - run buildconf (in the top level src directory) > - if you've already built php from this source tree before do > > config.nice ...any-options-specific-to-your-extension > > else extract the configure string for the current php installation > from "php -i" output, re-use this configure line and add your > extensions options to it > - make > - optional: make test > - make install (may require sudo) > > >> iii) as above (either i or ii) but with instructions to allow the >> project to be initiated >> and compiled within the KDE development environment > > i don't know / use Kdevelop, but i'm pretty sure that it allows > to integrate standard unix projects based on configure/make ... > >> Resulting object (presumably .so) to be accessible in a distribution >> release of Apache/Php >> with only minor modification of a client's Apache/Php config settings. > > using CodeGen_PECL you'll get a full self contained extension > project, including a package.xml file suitable for automatic > installation using the pear installer > > > -- > Hartmut Holzgraefe, Senior Support Engineer . > MySQL AB, www.mysql.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > __________ NOD32 1.1380 (20060125) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > >