PHP Readline extension installed but not available

dkzr

Verified User
Joined
Oct 17, 2013
Messages
93
Location
The Netherlands
I've installed the readline php extension with custombuild.

But the `readline` function is not available in php-cil (nor php-fpm)

Am I missing something?

I've rebuild both php_readline and php
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
1,885
Location
UA
after extension compitation - usually you must include it in php.ini or another config (fpm).
 

dkzr

Verified User
Joined
Oct 17, 2013
Messages
93
Location
The Netherlands
YES!
Thank you so much

I expected that custombuild would load the extension.

I've modified /usr/local/phpXX/lib/php.conf.d/10-directadmin.ini and added `extension=readline.so`

Hope this change is not reverted...
 

jamgames2

Verified User
Joined
Aug 16, 2019
Messages
1,095
don't do that,

"10-directadmin.ini" will rewrite by custombuild

create other file like "99-custom.ini"
 

dkzr

Verified User
Joined
Oct 17, 2013
Messages
93
Location
The Netherlands
Thnx

The build script does have commands to add `extension=readline.so` to the 10-directadmin.ini files. I don't know why it doesn't do that for me.

Rebuilding all PHP now and will check if the extension is still listed. Otherwise I'll add it to a custom file.
 

dkzr

Verified User
Joined
Oct 17, 2013
Messages
93
Location
The Netherlands
10-directadmin.ini is overwritten without my readline.so line.

@smtalk it's a custombuild bug: the PHP_EXT_SETTINGS variable currently does not include READLINE. When you add it, all works as expected.
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
1,885
Location
UA
that's why @jamgames2 told you:
"
don't do that,
"10-directadmin.ini" will rewrite by custombuild
create other file like "99-custom.ini"
"
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
10,606
Location
LT, EU
10-directadmin.ini is overwritten without my readline.so line.

@smtalk it's a custombuild bug: the PHP_EXT_SETTINGS variable currently does not include READLINE. When you add it, all works as expected.
It'll be there in next alpha build (this night), thank you for the report!
 
Top