Bug 134880

Summary: lang/php5 - PHP CLI interactive mode misbehaviour with readline module
Product: Ports & Packages Reporter: Aragon Gouveia <aragon>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Aragon Gouveia 2009-05-23 20:50:01 UTC
PHP's CLI SAPI supports an interactive mode when run with the -a parameter.  It behaves very similarly to Python's interactive "shell", complete with command history.  An example of this functionality can be seen here:

http://blog.charlvn.com/2009/05/php-interactive-mode.html

This feature is only available when PHP is compiled with Readline support enabled.  For some reason, it does not work when Readline support is enabled in the usual FreeBSD ports' modular fashion.  It must be enabled during the configuration/compilation of the PHP CLI SAPI itself.

I don't see a workaround to it not working with a modular Readline, so I propose adding a config option to lang/php5 that adds "--with-readline" to the configure parameters.

Fix: Potential patch attached.


Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-23 22:49:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-05-07 14:06:18 UTC
State Changed
From-To: open->closed

Not reproduceable on 5.4.