When I compile phpmod with php 5 (or 5.6) everything works fine. But when I install php7.2 the php ESL doesnt work any more.
It turned out that in ESL.php is using dl() to dynamically load extension at runtime. However, the dl() option was removed in later verisons of php.
Here is the output of
# ./single_command.php status
PHP Warning: dl(): Dynamically loaded extensions aren't enabled in
/usr/src/freeswitch/libs/esl/php/ESL.php on line 24
Command to run is: status
PHP Fatal error: Uncaught Error: Call to undefined function
new_ESLconnection() in /usr/src/freeswitch/libs/esl/php/ESL.php:157
Stack trace:
#0 /usr/src/freeswitch/libs/esl/php/single_command.php(9):
ESLconnection->__construct('127.0.0.1', '8021', 'ClueCon')
#1 {main}
thrown in /usr/src/freeswitch/libs/esl/php/ESL.php on line 157
I tried to load ESL.so extension in php.ini but that does not work either.
Here is the output:
# php -dextension=/usr/lib/php/20160303/ESL.so
PHP Warning: PHP Startup: ESL: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20170718
These options need to match
in Unknown on line 0
Any idea to get ESL PHP working with php7.2?
I need to use php > 7.1.3 (web framework requirement)
PS: I opened a ticket on JIRA but I got nothing back yet.