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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeff00seattle
Forum Commoner
Posts: 66
Joined: Sat Feb 28, 2009 3:27 pm

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

Post 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
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

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

Post 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
Post Reply