RE: [PHP-DEV] problems with dl() From: Peter Kocks (peter.kocks <email protected>)
Date: 08/04/00

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 <email protected>]
> Sent: Friday, August 04, 2000 12:26 PM
> To: Rasmus Lerdorf; Adam Kropielnicki
> Cc: php-dev <email protected>
> 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 <email protected>>
> http://www.zend.com/
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>