Re: problems with dl()

From: Date: Fri, 04 Aug 2000 15:19:53 +0000
Subject: Re: problems with dl()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27712@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > > > > > > > Hi > > > > > > > > I built my own dynamic loadable module with php-4.0b4pl1 and it worked > > > > well with Apache+this PHP. And now I installed Apache+php-4.0.1pl2 and > > > > when function > > > > dl(uu.so) is called this warning appears: > > > > > > > > Warning: uu: Unable to initialize module Module compiled with debug=255, > > > > thread-safety=255 module API=0 PHP compiled with debug=0, > > > > thread-safety=0 > > > > module API=20000609 These options need to match in > > > > /usr/local/apache/htdocs/encodetset.php on line 2 > > > > > > Try to reconfigure php4.02pl2 with --enable-debug --enable-experimental-zts > > > (I am not sure of the last one). > > > Or compile you module with --disable-debug (probably the best way). > > > > > > > How to disable debug and zts in compiling dynamic module? > > Well, how are you compiling it? > There is a directory dl In source of php-4.0b4pl1 and inside this directory the complete example of dynamic library exists (calendar.so). So my dynamic module is compiled in the same way as calendar.so. Maybe they are some gcc switchs to disable debuging. Adam

« previous php.dev (#27712) next »