RE: [PHP-DEV] problems with dl()

From: Date: Fri, 04 Aug 2000 21:35:16 +0000
Subject: RE: [PHP-DEV] problems with dl()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27756@lists.php.net to get a copy of this message
My first guess is that you've got conflicting versions of php on your system. I had similar errors when using dl() compiled with different revs of php. I'd recommend that you blow away your current version of php COMPLETELY. There should be nothing in /usr/local/include or anywhere else that is part of php. Rebuild php and then rebuild your .so. That's what I did and my problem went away. --pk > -----Original Message----- > From: Andi Gutmans [mailto:andi@zend.com] > Sent: Friday, August 04, 2000 12:26 PM > To: Rasmus Lerdorf; Adam Kropielnicki > Cc: php-dev@lists.php.net > Subject: Re: [PHP-DEV] problems with dl() > > > At 07:57 AM 8/4/00 -0700, Rasmus Lerdorf wrote: > > > 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 > > > >This means pretty much exactly what it says. You compiled your extension > >in debug mode and ZTS mode and you are trying to load it into a > non-debug, > >non-ZTS version of PHP. > > Actually I think you are very wrong there. It is not possible for > debug to > be 255. It is either 0 or 1 so he probably has some kind of build/include > problem there. > > My suggestion is not to copy calender's setup but use ext_skel to > create an > empty one and try and move your stuff over. > > Andi > --- > Andi Gutmans <andi@zend.com> > http://www.zend.com/ > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#27756) next »