I have a similar problem as here
I am using Apache2 server.
I have made a simple extension named extensionV2.so I can load the extension and use it in my code when i do
extension = extensionV2.so in php.ini.
and use its functions in my php file.
But if i use
<?php
dl('extensionV2.so');
var_dump(get_loaded_modules());
?>
I get the error
Fatal error: Call to undefined function dl() in /var/www/html/My.php on line 9
Note:
I am using php 5.3
According to phpinfo()
Thread Safety - disabled
Safe Mode - Off
enable_dl() = On
I get the desired output via php -r in the terminal. I am aware of dl() not in use anymore via apache2handlers... is there any alternate option to workaround the dl() issue?