Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43874 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25110 invoked from network); 8 May 2009 16:00:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2009 16:00:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.220 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arnaud.lb@gmail.com X-Host-Fingerprint: 209.85.220.220 mail-fx0-f220.google.com Received: from [209.85.220.220] ([209.85.220.220:41733] helo=mail-fx0-f220.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/94-33784-B07540A4 for ; Fri, 08 May 2009 12:00:11 -0400 Received: by fxm20 with SMTP id 20so1618247fxm.23 for ; Fri, 08 May 2009 09:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=M2+D+cs4lTZODtrWnQLAMxv6PdFqfQ+1TSnkOXamaWA=; b=ZxFQIkG+UBZN+w9UWNesIKAvOESUlC0095tvqPItq3VfaZOhRP9BOufadpPLInJWNu a/F3oh+7w61lUoo5ql3k0BmFOeC6Nysg8PFH3WmGbklu1s05A/TBMt710x7GPugLD8hd PbrfcD0NuDSRNDutip6/hNdEgllqMUyZrcPUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=Rlbyp5xMU/mpZamJKtQNK40M5omCDoPhknyoat2IFWtXJ78UIsRQqmDwcM8y5EPBMy tUJQ05ntGaYFdfFEFgukbAe9GENiXfX4nFmvJTRyBzkpGu0XCVZN4HRjQ/uMOaF5Hg7Q ApTCb0sYFufcAtRz99EXIdcfWRwa2KlcQIBWE= Received: by 10.103.179.1 with SMTP id g1mr2446296mup.48.1241798405940; Fri, 08 May 2009 09:00:05 -0700 (PDT) Received: from ?192.168.1.10? (207-177-41-213.getmyip.com [213.41.177.207]) by mx.google.com with ESMTPS id j10sm975480muh.45.2009.05.08.09.00.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 May 2009 09:00:05 -0700 (PDT) Sender: Arnaud LB To: Paul Biggar Cc: PHP Internals , Johannes =?ISO-8859-1?Q?Schl=FCter?= , Lukas Kahwe Smith In-Reply-To: References: <1241788319.7724.31.camel@localhost> Content-Type: text/plain Date: Fri, 08 May 2009 18:00:03 +0200 Message-ID: <1241798403.7724.51.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Bug 47468: enabling readline/libedit/pcntl/ncurses with --enable-embed From: lbarnaud@php.net (Arnaud Le Blanc) On Fri, 2009-05-08 at 16:12 +0100, Paul Biggar wrote: > Hi Arnaud, > > Thanks for looking at this. > > On Fri, May 8, 2009 at 2:11 PM, Arnaud Le Blanc wrote: > > Does the following patch works for you ? (use ./buildconf after > > applying, then reconfigure). It does the same thing as yours, but moves > > the decision of allowing "cli" extensions to SAPI's config.m4. > > I tested this on CVS 5.3 (with the configure command: ./configure > --with-readline --enable-embed --enable-maintainer-zts > --enable-debug). It applies cleanly, and I checked the readline > symbols were present. I have also forwarded it to two of phc's users > who reported the bug. I expect they'll be back to me within a day or > two, if you prefer to wait for further confirmation. > > FWIW, I like the new patch better than my hack. However, I don't > understand the how it works from the comment (that bit of acinclude is > very shoddily documented in general). The build system allows to build two SAPIs at a time: the CLI and a SAPI of choice. Some extensions are irrelevant for webserver SAPIs, so they mark themselves as CLI-only extensions. This allows one to enable these extensions in the CLI without enabling them in the server SAPI. This patch allows a SAPI to mark itself as allowing those extensions. Regards, Arnaud