Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43877 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52008 invoked from network); 9 May 2009 13:30:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2009 13:30:49 -0000 Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.179 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.219.179 mail-ew0-f179.google.com Received: from [209.85.219.179] ([209.85.219.179:36917] helo=mail-ew0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/B2-38338-785850A4 for ; Sat, 09 May 2009 09:30:49 -0400 Received: by ewy27 with SMTP id 27so2667478ewy.23 for ; Sat, 09 May 2009 06:30:45 -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=3Sa0rbG6xU62nHMFvnwvthzkEvYtle/5YRFceKFeSRE=; b=UWvYGXFac9lAJCHrE1ID2CCZLbumsxMpeAdWkVIZKk9SalbnaXOtx6tHAbz/wzXv1o kLT9jUI+wVCvCnHmJxDxaIvi9uzTz9qtPx4ksTtcCnQuRZ8ut7lr+BkdX4DOGgaDIMcJ jskZySxhErBmZS6yo0CRyE25wG+H1Jx3aBS/I= 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=YDNu3jj5sdqSRgfRQuq5KwJSX/4JYFFP222yBCauc4dUj/0V/SrTm2/CgjRJqGPk5V 9hfg4iBnKu2I2lpHbKDbWzU8aGJu3k88YyH9GpfGuJwcZw1rtsUqkhfVJjqmhpM9IbS9 EAd/7XLRFFSOMheyEmcmwGVydA35tdSX+fkcA= Received: by 10.216.26.202 with SMTP id c52mr2177361wea.98.1241875845338; Sat, 09 May 2009 06:30:45 -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 7sm3722359eyg.57.2009.05.09.06.30.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 May 2009 06:30:44 -0700 (PDT) Sender: Arnaud LB To: jani.taskinen@iki.fi Cc: Paul Biggar , PHP Internals , Johannes =?ISO-8859-1?Q?Schl=FCter?= , Lukas Kahwe Smith In-Reply-To: <4A04D241.10201@sci.fi> References: <1241788319.7724.31.camel@localhost> <1241798403.7724.51.camel@localhost> <4A04D241.10201@sci.fi> Content-Type: text/plain Date: Sat, 09 May 2009 15:30:42 +0200 Message-ID: <1241875842.8056.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 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 Sat, 2009-05-09 at 03:45 +0300, Jani Taskinen wrote: > Arnaud Le Blanc kirjoitti: > > 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. > > I really need to sleep before I read this again, but with a quick look at the > patch I couldn't figure what you're fixing and where. :) Reproduce code: "./configure --with-readline --enable-embed && make" Expected result: libphp5.so with readline extension builtin Actual result: libphp5.so without readline extension Regards, Arnaud