Bug 210585 - php-cli built without static readline support
Summary: php-cli built without static readline support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-12 22:45 UTC by Johannes Schlüter
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 5.1.6-3.3.fc6
Clone Of:
Environment:
Last Closed: 2007-01-31 17:41:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Johannes Schlüter 2006-10-12 22:45:19 UTC
Since PHP 5.1 PHP offers an interactive shell mode when run using "php -a" if
readline was compiled static into PHP. This mode won't work with readline as
dynamic module. So I would be happy having readline enabled by default for PHP CLI.

See my blog post for more information on that interactive mode:
http://blog.thinkphp.de/archives/44-More-PHP-power-on-the-command-line.html

Comment 1 Joe Orton 2006-11-15 12:20:25 UTC
This seems reasonable, but it looks like it needs some work to enable this only
for the CLI SAPI not the Apache SAPI.  (since these are currently build with the
same configure invocation)

Comment 2 Johannes Schlüter 2006-11-15 13:44:25 UTC
Hi Joe,

thanks for the feedback. I think using ext/readline is only linked to the CLI
binary even when other SAPIs are enabled, too. I didn't check it but I think
there's such a flag either in ext/readline/config.m4 or sapi/cli/config.m4.

Greetings from Germany,
johannes

Comment 3 Joe Orton 2006-11-27 16:35:09 UTC
php-5.1.6-3.2.fc6 has been pushed to FC6 updates-testing, which should contain
the fix for this bug.  You can test the new packages by running:

  # yum --enablerepo=updates-testing update php




Note You need to log in before you can comment on or make changes to this bug.