Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62056 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81988 invoked from network); 5 Aug 2012 23:37:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2012 23:37:53 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:48184] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/52-03102-FC30F105 for ; Sun, 05 Aug 2012 19:37:53 -0400 Received: from [192.168.2.230] (ppp-93-104-6-207.dynamic.mnet-online.de [93.104.6.207]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 1B8CB630C8; Mon, 6 Aug 2012 01:37:47 +0200 (CEST) To: Andrew Faulds Cc: Ferenc Kovacs , PHP Internals In-Reply-To: <501F0047.9080005@ajf.me> References: <1344205126.1440.1086.camel@guybrush> <501F0047.9080005@ajf.me> Content-Type: text/plain; charset="UTF-8" Date: Mon, 06 Aug 2012 01:37:57 +0200 Message-ID: <1344209877.1440.1176.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php interactive shell without readline From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2012-08-06 at 00:22 +0100, Andrew Faulds wrote: > > to tell you the truth I'm just throwing around ideas and waiting for > > somebody with better understanding the actual implementation to help me > > out. ;) I wonder which is the actual problem to solve? ;-) Probably a better solution is to simply drop the -a mode without readline and show a nice error message instead. Unix/Linux users should have either libedit or readline around. For Windows this is still might not be a complete solutions, last time I tried I failed with providing inofficial readline builds (don't remember the problem) but maybe the win folks can provide libedit based builds (we can't provide readline based builds due to licensing) > Well if linenoise() isn't that different, you could use #ifdefs to make > it use the correct lib at compile-time, no? That won't solve the issue that the extension might not be there (unless you undo the refactoring in 5.4 which means there's no way to override using readline anymore, as mentioned in my previous mail) johannes