New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #10633 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

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.

Change History

comment:1 Changed 7 years ago by yeled@…

  • Owner yeled@… deleted

comment:2 Changed 7 years ago by markd@…

  • Summary changed from Request to add PDO::sqlite driver to PHP 5.1 port to RFE: add PDO::sqlite driver to PHP 5.1 port

comment:3 Changed 7 years ago by markd@…

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.