Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91384 invoked from network); 18 Sep 2013 14:04:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2013 14:04:49 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:33138] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/7A-43258-FF2B9325 for ; Wed, 18 Sep 2013 10:04:48 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1VMIN2-0007CK-Hv for internals@lists.php.net; Wed, 18 Sep 2013 15:04:44 +0100 Date: Wed, 18 Sep 2013 15:04:44 +0100 To: PHP Internals Message-ID: <20130918140444.GI20925@phcomp.co.uk> Mail-Followup-To: PHP Internals References: <20130914114540.GF3919@phcomp.co.uk> <523763A1.2090607@divbyzero.net> <20130917002719.GM3919@phcomp.co.uk> <5237F6AA.9030209@fedoraproject.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5237F6AA.9030209@fedoraproject.org> Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] PHP CLI setting cooked terminal mode From: addw@phcomp.co.uk (Alain Williams) On Tue, Sep 17, 2013 at 08:28:58AM +0200, Remi Collet wrote: > > Please... don't rely, for distro packaged PHP on configure option listed > in phpinfo report [1]. > > > Additional Modules > > > > Module Name > > readline > > readline extension doesn't use readline library (under incompatible > license: GPLv3) but libedit (License: BSD). Running php and looking at the /proc/../maps file I see that it has mapped /usr/lib64/libedit.so.0.0.27 Looking at the symbol table I see the symbol tcsetattr -- this sets terminal modes in the way that I was seeing from the system call trace. What is needed is for this to NOT be called if the standard output is not connected to a tty. Should I raise this as a bug ? > Remi. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include