Page 1 of 1

function dl(): Deprecated? If so, Replacement?

Posted: Mon Feb 01, 2010 8:02 pm
by jeff00seattle
Reference: http://www.php.net/manual/en/function.dl.php

dl() — Loads a PHP extension at runtime

Reference to this PHP function has a warning:
Warning: This function has been removed from some SAPI's in PHP 5.3.
Does this mean that this function is deprecated?
If so, then is there a replacement that I should use instead?

Thanks

Jeff in Seattle

Re: function dl(): Deprecated? If so, Replacement?

Posted: Mon Feb 01, 2010 8:09 pm
by Eran
As always, the manual explains:
dl() is now disabled in some SAPI's due to stability issues. The only SAPI's that allow dl() are: CLI, CGI and Embed. Use the Extension Loading Directives instead.
http://php.net/manual/en/function.dl.php