Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79022 invoked from network); 28 Feb 2012 22:04:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 22:04:48 -0000 Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:49600] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/F8-36673-F7F4D4F4 for ; Tue, 28 Feb 2012 17:04:47 -0500 Received: by lahl5 with SMTP id l5so3452455lah.29 for ; Tue, 28 Feb 2012 14:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of dragoonis@gmail.com designates 10.112.24.4 as permitted sender) client-ip=10.112.24.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dragoonis@gmail.com designates 10.112.24.4 as permitted sender) smtp.mail=dragoonis@gmail.com; dkim=pass header.i=dragoonis@gmail.com Received: from mr.google.com ([10.112.24.4]) by 10.112.24.4 with SMTP id q4mr8727031lbf.80.1330466684352 (num_hops = 1); Tue, 28 Feb 2012 14:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1yxLx6IXokP49yAwBRP9lq/+Xqj0Y76R8xwWTMDJvzw=; b=vnmrV5DhSR2PUZlf0l1gnWbRzp9Nw0NLB+of+g2g/VIX+T4eHj1PjTxyNfPVxTlz2y VP/ra5Ek7WpKijOp+TfGmUHZRSNMKRlywkstkBJuzCekjVRUwKL+zcF6ySN0uFTE+HtJ 9V5djNt2AHzHCBfGjcZpQaWmHTYtMDI6Oj39A= MIME-Version: 1.0 Received: by 10.112.24.4 with SMTP id q4mr7320974lbf.80.1330466684235; Tue, 28 Feb 2012 14:04:44 -0800 (PST) Received: by 10.152.134.82 with HTTP; Tue, 28 Feb 2012 14:04:44 -0800 (PST) In-Reply-To: <4F4D4E79.1080602@lerdorf.com> References: <1330464316.3034.YahooMailNeo@web29505.mail.ird.yahoo.com> <4F4D4E79.1080602@lerdorf.com> Date: Tue, 28 Feb 2012 22:04:44 +0000 Message-ID: To: Rasmus Lerdorf Cc: Christian Ferrari , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e0cb4efe31b4196f4304ba0d6a23 Subject: Re: [PHP-DEV] Newbie: issues developing a new extension From: dragoonis@gmail.com (Paul Dragoonis) --e0cb4efe31b4196f4304ba0d6a23 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 28, 2012 at 10:00 PM, Rasmus Lerdorf wrote: > On 02/28/2012 01:25 PM, Christian Ferrari wrote: > > Dear all, > > I'm asking your help because I'm not able to solve an issue probably > related to some foolish mistake I have not yet discovered. > > I'm trying to develop an experimental extension to interface LIXA > library (http:/lixa.sourceforge.net/). > > > > I have created the basic stuff (config.m4, lixa.c, php_lixa.h and so on). > > > > If I use this sequence from the ext/lixa directory: > > > > /opt/php/bin/phpize > > ./configure --help > > > > I can see the lixa extension is available: > > > > [...] > > Optional Packages: > > --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] > > --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) > > --with-libdir=NAME Look for libraries in .../NAME rather than > .../lib > > --with-php-config=PATH Path to php-config php-config > > --with-lixa=FILE Include LIXA support. File is the path to > lixa-config > > > > [...] > > > > and I can compile with: > > > > ./configure --with-lixa=/opt/lixa/bin/lixa-config > --with-php-config=/opt/php/bin/php-config > > > > the build process runs as expected and the extension is available after > an addition to php.ini (extension=[...]/ext/lixa/modules/lixa.so). > > Great, you are done. Why do you want to go any further than this? You > built your extension and it is available from PHP exactly like any pecl > extension. > and if you're using apache, reboot it and check your phpinfo() page for your extension. if you're connected up via the command line you can run "php -m" to see if your modules exists. > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --e0cb4efe31b4196f4304ba0d6a23--