为 PHP 5 编译 SQLite 的设置是什么? [英] What are the settings that SQLite is compiled with for PHP 5?

查看:57
本文介绍了为 PHP 5 编译 SQLite 的设置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQLite 3.7 带有新的
(来源:
(来源:
(来源:pascal-martin.fr)

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)

这篇关于为 PHP 5 编译 SQLite 的设置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆