Hello Everyone,

I worked with php last one month. When I started, I have installed php-5.3 with apache(http) server. I configured it and start working but, when I used dl() in my script it was not supported by php-5.3. When I was read about that, I found this statement "5.3.0, dl() is now disabled in some SAPIs due to stability issues. The only SAPIs that allow dl() are CLI and Embed.". If it is deprecated from php-5.3 onwards then what is the replacement of that. I also found one link just after the statement that I mentioned is "Use the Extension Loading Directives instead." but, I unable to understand what should I do with that directives.

Please tell me the setting if there is any for dl() in php-5.3 onwards.

Thanks & Regards,

Antrikssh.......🙂

    Why were you using dl() in the first place? Why not just enable the extension in your php.ini file?

      Hello,

      I used extesnion procedure. If I created .so file manually then I worked easilly. But I used swig+php in which swig generate wrap file and .php file in that dl() is encountered. when I encountred by the php complier it send me a fatal error regarding to dl(). so I just want to know I there is any other setting for that so please tell me.

        Antrikssh;11009069 wrote:

        But I used swig+php in which swig generate wrap file and .php file in that dl() is encountered.

        Ah, sounds like you actually had a valid reason for the use of dl() then. (In other words, it wasn't just an attempt at loading a standard PHP extension that wasn't enabled in the php.ini file.)

        How are you trying to execute the files that SWIG generates? If you're using one of SAPIs that still allow the use of dl(), I wouldn't expect you to get a fatal error; can you show us the exact error message? The only suggestion I have is to make sure you've got enable_dl set to On in your php.ini file.

          Hello,

          I am sorry this time I am unable to send you the exact Fattal error bcz Now I have installed php-5.2 that support dl(). But I am still intrested to kow the solution of the problem.I remember that in my php.ini file enable_dl = On but still dl() is not working and the two sapi is supporting my script at that time, CLI and Embbed. CLI( I was tested ) and Embbed(According to php documents not tested by me). But CGI is not supported dl().

          Thanks,
          Antrikssh.....

            Write a Reply...