Page 1 of 1

dl() Not working

PostPosted: 04. June 2013 06:39
by thilmca
Dear Friends,

I need to read a test.so file using dl() method. Its not working in latest version of xampp. am using xampp 1.8.0. Please help me to fix the issue.

Re: dl() Not working

PostPosted: 04. June 2013 07:38
by JJ_Tagy
This may be related as I believe we now run php 5.4
http://stackoverflow.com/questions/1222 ... nabling-dl

Re: dl() Not working

PostPosted: 04. June 2013 12:36
by Altrea
Hi thilmca,

As JJ_Tagy already mentioned, dl() is only supported in specific Server APIs. PHP in XAMPP is running as Apache Module so it uses the SAPI apache2handler. This SAPI doesn't have any support for dl().

The other thing:
http://www.php.net/manual/en/function.dl.php wrote:Note:

dl() is not supported when PHP is built with ZTS support. Use the Extension Loading Directives instead.

ZTS stands for Zend Thread Safety. PHP in XAMPP is build as thread-safe (TS) so it is not supported. Sorry.

best wishes,
Altrea