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
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)
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
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