|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53878 Interactive shell should work with shared readline extension
Submitted: 2011-01-29 13:59 UTC Modified: 2011-02-19 17:05 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Assigned: johannes (profile)
Status: Closed Package: CGI/CLI related
PHP Version: trunk-SVN-2011-01-29 (SVN) OS: *
Private report: No CVE-ID: None
 [2011-01-29 13:59 UTC]
The interactive shell (-a) should also work when the readline extension is compiled as shared object. This an be done by introducing a hook in the cli SAPI. An issue is that `php -h` can't give a proper indication about the availability as we'd have to startup PHP first. I assume we can keep the compile time decision there.

Test script:
./configure --with-readline=shared
./sapi/cli/php -dextension=modules/ -a

Expected result:
php >


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-29 13:59 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: johannes
 [2011-02-19 17:04 UTC]
Automatic comment from SVN on behalf of johannes
Log: - Implement FR#53878 Interactive shell should work with shared readline extension

# This is useful w/ distributors who like to build all things shared or don't
# provide the readline extension. Or if a user pefers readline's behavior over
# libedit which might be used by the  distributor.
 [2011-02-19 17:05 UTC]
-Status: Assigned +Status: Closed
 [2011-02-19 17:05 UTC]
Implemented for PHP trunk.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 05:01:29 2024 UTC