1 (edited by CD-RW 2010-08-23 20:58:40)

Topic: php-readline for remi repos?

Please can we have php-readline in the Remi repo to match Remi's PHP 5.x.x ?

The php-readline from CentOS is an older version - 5.1.6

http://i37.tinypic.com/2hnymts.jpg

Using the php-readline package allows one to use PHP from the command line interactively, similar to a BASIC interpreter.

This allows one to test several lines of complex PHP scripting,in near real time. Really handy for working out the preg_xxx functions.

Thanks!

Re: php-readline for remi repos?

The realine extension is provided in the php-cli package.

# yum install php-readline
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package php-cli-5.3.3-1.fc13.remi.x86_64 already installed and latest version
Nothing to do

$ php -m | grep readline
readline

$ php -r 'echo "read: ".readline("prompt: ")."\n";'
prompt: hello
read: hello

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi