ZF-58: Checking for PDO extensions (Trac #114)

Issue Type: Improvement Created: 2006-06-20T05:46:30.000+0000 Last Updated: 2007-07-05T14:44:28.000+0000 Status: Closed Fix version(s): - 0.1.4 (29/Jun/06)

Reporter: Mark Evans (sparky) Assignee: Mark Evans (sparky) Tags: - Zend_Db

Related issues: Attachments: - ZF-58.diff


I have a suggestion for the Zend_Db component of the Zend Framework. I was wondering if it would be possible to include a check in the Db component to check to see if the PDO extensions are installed on a system.

I am working on a database application and was trying to get information to the database. After trying everything in the manual, I checked my installation and found out the I did not have the PDO extensions installed.

If a check for PDO was in place and threw an exception, I would have cut down on my debugging.

Anyway, just a suggestion. Thank you for you time and for a great framework.

Regards, Troy L. Marker


Posted by Mark Evans (sparky) on 2006-06-20T05:49:07.000+0000

This patch adds a check to make sure the PDO driver is installed. If not it throws a Zend_DB_Adapter_Exception

Posted by Mark Evans (sparky) on 2006-06-21T15:49:53.000+0000

Added a check for the slected PDO driver.

Posted by Gavin (gavin) on 2006-07-04T13:23:31.000+0000

Patch lead to identification of another bug (see [ZF-164]) and related issues with checks/tests at run-time.

Also see the fw-general discussion regarding Zend_Environment, and where to put checks and tests that do not need to be executed on instantiation / every page view.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.