The php manpage sais, you have to install sqlite via PECL, so I tried the latest version:
cd /tmp/
wget https://pecl.php.net/get/SQLite-1.0.3.tgz
tar xvzf SQLite-1.0.3.tgz
cd SQLite-1.0.3/
phpize
But I cannot install php_sqlite on Ubuntu 15.10 like this. I get an error at make :
/tmp/SQLite-1.0.3/sqlite.c: In function 'zif_sqlite_open':
/usr/include/php5/main/php_globals.h:32:29: error: 'struct _php_core_globals' has no member named 'safe_mode'
And many more, so is there an actual version working on PHP 5.6?
I want to run an old program that uses the function sqlite_open
And installing the package didn't make it work:
apt-get install php5-sqlite
So maybe there's a good wrapper library around that uses SQLite3::open to simulate the old functions?