tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Missing -lsqlite3 in Apache


After upgrading to PHP 7.1.23, I encountered an Apache crash on a
machine triggered by the mere invocation of this PHP snippet: 

$db = new SQLite3("nonexistant.db"); 

PHP documentation states that sqlite is built-in
But I note that the apache module I got from
pkgsrc/www/ap-php does not link with -lsqlite3

And indeed, adding this preload to /etc/rc.conf.d/apache works around
the problem:

But this is puzzling because I have other machines where the same PHP
snippet works like a charm with the same and without the
need for preload trick. How is this supposed to work?

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index