Re: PHP CLI setting cooked terminal mode
| From: | Alain Williams | Date: | Wed, 18 Sep 2013 14:04:44 +0000 |
| Subject: | Re: PHP CLI setting cooked terminal mode | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69193@lists.php.net to get a copy of this message | ||
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 <std_disclaimer.h>