Opened 18 years ago

Closed 18 years ago

#10633 closed enhancement (fixed)

RFE: add PDO::sqlite driver to PHP 5.1 port

Reported by: ant-1@… Owned by: har5ha
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.

Change History (3)

comment:1 Changed 18 years ago by yeled@…

Owner: yeled@… deleted

comment:2 Changed 18 years ago by markd@…

Summary: Request to add PDO::sqlite driver to PHP 5.1 portRFE: add PDO::sqlite driver to PHP 5.1 port

comment:3 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed

This mod has been added the php5 port so this can be closed.

Note: See TracTickets for help on using tickets.