php5 and pgsql/sqlite

Daniel Braniss danny at cs.huji.ac.il
Fri Apr 6 06:13:16 UTC 2012


problem solved, compiling php with:
   LINKTHR=on "Link thread lib (for threaded extensions)"
fixed it.

> On 2012-04-02 17:22, Daniel Braniss wrote:
> > hi,
> > whenever extensions=pgsql.so or/and extensions=slqlite3.so is added
> > php exits with error (Exit 1)
> > 
> > without those modules:
> > % php -v
> > PHP 5.3.10 with Suhosin-Patch (cli) (built: Apr  2 2012 14:28:23) 
> > Copyright (c) 1997-2012 The PHP Group
> > Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
> > 
> [...]
> > 
> > [Zend Modules]
> > 
> > 
> > but when adding, for example extension=pgsql.so to 
> > /usr/local/etc/php/extensions.ini
> > 
> > php exits with error
> > 
> > BTW, I noticed the problem after I compiled php5-extensions.
> > so, what am I doing wrong? 
> > 
> 
> Hi Daniel,
> 
> I suspect it is the ordering in /usr/local/etc/php/extensions.ini.
> Maybe the following script can help to solve your issue.
> http://people.freebsd.org/~ohauer/scripts/fixphpextorder.sh
> 
> There are not all extensions in the script but it is a starting point.
> 
> --
> Regards,
> olli




More information about the freebsd-ports mailing list