[Code] PHP dl() function not supported

Sean Mackrory mackrorysd at gmail.com
Sun May 23 19:09:16 UTC 2010


My apologies if this is a dumb comment in any way - I'm relatively
inexperienced with PHP and OpenID. I was trying to install the PHP
OpenID library on a fresh install of Ubuntu 10.04 Server Edition,
where the only changes made to the system were the installation of the
lamp-server task and the postfix and phpMyAdmin packages. The
examples/detect.php script would halt mid-execution with no exception
thrown, and I eventually found the cause to be the use of the dl()
function to load modules at run-time (such as gmp, etc...). According
to the PHP documentation (http://php.net/manual/en/function.dl.php)
support for this function has been declining. It appears that this
function is now used less than it was in previous versions of the
library, however it is still used on the following lines:

examples/detect.php:317
examples/server/setup.php:179
examples/server/setup.php:185
examples/server/setup.php:191
Tests/Auth/OpenID/StoreTest.php:655

I have commented out the offending expressions, and it appears that
the library will be able to run properly, if only at sub-optimal
settings. Is there a better solution to this that could be implemented
either in the library or on my installation?

Thanks


More information about the Code mailing list