Call to undefined function dl()

前端 未结 1 1769
野趣味
野趣味 2020-12-11 20:30

I am using PHTML encoder to encode my php file but it is giving error \"Call to undefined function dl()\" when i run the encoded file. Somebody please help.

         


        
相关标签:
1条回答
  • 2020-12-11 20:59

    as @k102 mentioned dl() has been disabled by default since 5.3:

    as refered on the php documentation: http://php.net/manual/en/function.dl.php

        5.3.0   dl() is now disabled in some SAPIs due to stability issues.
    The only SAPIs that allow dl() are CLI and Embed. Use the Extension Loading Directives instead.
    

    as suggested there, use the Extension Loading Directives instead: http://www.php.net/manual/en/ini.core.php#ini.extension


    Basically your only choices are:

    1. Load the extension configuring it properly on the php.ini
    2. Use one of the mentioned SAPI's that still supports dl() as mentioned in the documentation: (CLI, CGI and Embed)
    3. Downgrade your php version if you really need to load it dinamically
    0 讨论(0)
提交回复
热议问题