Re: debugging dl()

From: Date: Wed, 07 Sep 2005 09:53:01 +0000
Subject: Re: debugging dl()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221952@lists.php.net to get a copy of this message
Bob Pilly wrote:
Hi All Im having problems using dl() to load an extension that someone has given me. I get the following output from this simple script: //script <?php if(!dl('test_php.so')){
       print "Failed!";
} else{
       print "Success!";
} ?> //output PHP Warning: dl(): \uffff?\uffff: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20041030, debug=0, thread-safety=0
These options need to match Has anyone seen this before? If not does anyone know how i can trace this further? Thanks in advance for any help!! Cheers Bob Yes, this means that the module you have been given has been compiled against a prevous version of PHP - you will either need them to send you the source to compile against your version of PHP or get them to do it for you, or run it against the correct version of PHP.
HTH, Mikey

« previous php.general (#221952) next »