SQLite为PHP 5编译的设置是什么?

SQLite 3.7 comes with the new write-ahead logging (WAL) and there are lots of settings that can be configured. However, there doesn't seem to be any way to change anything with the PHP PDO SQlite lib. The sqlite3.ini file included with the PHP extension only has one configuration option.

Is there somewhere I can see which options the PHP project compiles SQLite with? Is there a way to build my own sqlite extension for PHP so I can configure these settings?

Using phpinfo(), you should be able to see which version of the SQLite library PHP has been compiled against.


For instance, here's what I have on my PHP 5.3.2 install (the default version of some not too-recent Ubuntu) :

   
(source: pascal-martin.fr)

And, for PDO :

   
(source: pascal-martin.fr)


I suppose you could have something more recent by recompiling PHP from source -- and, probably, using a more recent version of the SQLite development library.

For example, here's a screenshot of the relevant section of phpinfo()'s output from a PHP 5.3.99 build I did this week-end (on Ubuntu 10.10) :

   
(source: pascal-martin.fr)