Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60199 invoked from network); 29 Feb 2012 07:50:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 07:50:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=camauz@yahoo.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=camauz@yahoo.com; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com from 77.238.189.39 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: camauz@yahoo.com X-Host-Fingerprint: 77.238.189.39 nm10.bullet.mail.ird.yahoo.com Received: from [77.238.189.39] ([77.238.189.39:32472] helo=nm10.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/29-36673-CC8DD4F4 for ; Wed, 29 Feb 2012 02:50:37 -0500 Received: from [77.238.189.55] by nm10.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 07:50:33 -0000 Received: from [212.82.108.135] by tm8.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 07:50:33 -0000 Received: from [127.0.0.1] by omp1040.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 07:50:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 874129.72555.bm@omp1040.mail.ird.yahoo.com Received: (qmail 880 invoked by uid 60001); 29 Feb 2012 07:50:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1330501833; bh=uV2hQHtfK0EzvQejVAjyVYYTEyHmAWdw984189ATHdo=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iNxGtM7odKufUvJeowGCNWNLGszcfgD0K8I4kVdgl6tnBrlFcOvU09eUh+TKX6tSZhZ7fQkQdvR7LY+aBZn0h8BeRaMe/EZD/wfxHzZnts5Mr242bj/9O0mIpeXa1KlIKDuPIT4+79NmSiZoFP3jTgyPTQNSv6UDOEuuXMNIWJ8= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=B4O9tEkbVNOLMVa3r4ENoPqIZ2plORxqSP96u6IxSwqsBhslTnR5TaRT+1XJVFWCWLUDmSw/Mz1csALWedexz2AciftH7BvYpP35wH8ko2iOECtumPLHlk0BZUi81+7xMok1pdDfRQy75E7LBS+GeLWxhCJ4laBAncl1nSDMZTs=; X-YMail-OSG: AmzBXpwVM1njE.ipRJJJ7reuINVByv07O_MeChcbdNrGEtQ 7ISS.24LG_1MrbYXXEHv_JU0Oc7BrJBRnSGgbMSh3U1YiYWRvK9E4bxyVjQ7 pPFz.uivEUii95fVjJfJCPSI2Efx8z4SNJicANSZH3cBoiO1bUchNorPq.wp qUlQbUz8GwEQXuOeXNDHpMcm._9P68OwDariL_uAg_NBAKIDAJ2r7G0O6_85 Hbf_p6_X9WbvAzkVfpBF3039LHb2GfiuNsHp6QZLGOGUS2BhiZjuu_7QUJwG kWg.gxowAzSvudSXztQy632QA_0TZtfANgirqqJLwg3khdTkv4oV0wSNmaNG T.8yNxt7hJpfX2t9wwaPrxl9Yf_COhGYHd6cjlg3P596VIcFrMrUBTRlPVoX 4J9NMTFCCxNTSRZx5mnh92fcLNJ3HyKAOPXPcYl1Deagf582vAF5aqsFV5k6 3bZvObHzJC73sGKjgQBNJip.VBFZlxrLaACxAByLMBdGs2qYBkpcZ4JHKeg5 3xyCK0lXGjc3.Ga1jSWJpp3IPbDZwtc9Mgqpdr0A- Received: from [92.246.34.60] by web29504.mail.ird.yahoo.com via HTTP; Wed, 29 Feb 2012 07:50:33 GMT X-Mailer: YahooMailWebService/0.8.116.338427 References: <1330464316.3034.YahooMailNeo@web29505.mail.ird.yahoo.com> <4F4D4E79.1080602@lerdorf.com> Message-ID: <1330501833.99416.YahooMailNeo@web29504.mail.ird.yahoo.com> Date: Wed, 29 Feb 2012 07:50:33 +0000 (GMT) Reply-To: Christian Ferrari To: "internals@lists.php.net" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Newbie: issues developing a new extension From: camauz@yahoo.com (Christian Ferrari) >> > Dear all,=0A=0A>> > I'm asking your help because I'm not able to sol= ve an issue =0A> probably=0A>> related to some foolish mistake I have not = yet discovered.=0A>> > I'm trying to develop an experimental extension to = interface LIXA=0A>> library (http:/lixa.sourceforge.net/).=0A>> >=0A>> >= I have created the basic stuff (config.m4, lixa.c, php_lixa.h and so =0A> = on).=0A>> >=0A>> > If I use this sequence from the ext/lixa directory:=0A= >> >=0A>> > /opt/php/bin/phpize=0A>> > ./configure --help=0A>> >=0A>> = > I can see the lixa extension is available:=0A>> >=0A>> > [...]=0A>> > = Optional Packages:=0A>> >=A0 --with-PACKAGE[=3DARG]=A0 =A0 use PACKAGE [A= RG=3Dyes]=0A>> >=A0 --without-PACKAGE=A0 =A0 =A0 do not use PACKAGE (sam= e as =0A> --with-PACKAGE=3Dno)=0A>> >=A0 --with-libdir=3DNAME=A0 =A0 =A0 = Look for libraries in .../NAME rather than=0A>> .../lib=0A>> >=A0 --with= -php-config=3DPATH=A0 Path to php-config php-config=0A>> >=A0 --with-lixa= =3DFILE=A0 =A0 =A0 =A0 Include LIXA support. File is the path to=0A>> lixa= -config=0A>> >=0A>> > [...]=0A>> >=0A>> > and I can compile with:=0A>> = >=0A>> > ./configure --with-lixa=3D/opt/lixa/bin/lixa-config=0A>> --with= -php-config=3D/opt/php/bin/php-config=0A>> >=0A>> > the build process run= s as expected and the extension is available =0A> after=0A>> an addition t= o php.ini (extension=3D[...]/ext/lixa/modules/lixa.so).=0A>> =0A>> Great, = you are done. Why do you want to go any further than this? You=0A>> built = your extension and it is available from PHP exactly like any pecl=0A>> ext= ension.=0A>> =0A> =0A> and if you're using apache, reboot it and check your= phpinfo() page for=0A> your extension.=0A> if you're connected up via the = command line you can run "php -m" =0A> to see if=0A> your modules exists.= =0A> =0A> =0A>> =0A>> -Rasmus=0A>> =0A=0ADear all,=0AI would like to see m= y extension as any other extension, like MySQL, PostgreSQL, Oracle and so o= n because:=0A1. LIXA itself is useless without those resource managers=0A2.= I need to patch other extensions to implement the interfaces between LIXA = and MySQL/PostgreSQL/Oracle.=0AWhat's the difference between an "internal" = extension (like =0AMySQL/PostgreSQL/Oracle) and an "external" extension as = the one I =0Aproduced?=0AThanks in advance, your help is precious.=0ACh.F.