Ticket #10633 (closed enhancement: fixed)
RFE: add PDO::sqlite driver to PHP 5.1 port
| Reported by: | ant-1@… | Owned by: | |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | php sqlite | Cc: | |
| Port: |
Description
Hi,
After discussion with Ryan Schmidt, to whom this ticket is destined, he decided that maybe it would be a good idea to include sqlite driver to PDO in PHP 5.1 port.
To do so Ryan, you just have to add '--with-pdo-sqlite' to the configure line. Everything is included in the PHP 5.1 source, so there is no need for a variant or another port, you could enable it by default, the overhead is minimal.
To test if the driver was enabled after the "make install", you can run this : $ /opt/local/bin/php -r "phpinfo();" | grep "PDO drivers.*sqlite.*sqlite" | wc -l
Which will give you 0 if the driver was not installed, 1 if it was. I'm not sure this is something you can do, and maybe it's not the most surefire way to test for the availability, but that's how I do it ;)
Anyway, thanks for the help.

