ZF-4935: Zend_Db_Adapter_Pdo_Abstract does not check for PDO extension properly

Issue Type: Bug Created: 2008-11-12T11:08:23.000+0000 Last Updated: 2008-11-13T14:10:00.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: julien PAULI (doctorrock83) Assignee: julien PAULI (doctorrock83) Tags: - Zend_Db

Related issues: Attachments:


When you look at Zend_Db_Adapter_Pdo_Abstract, it does things like this in the _connect() method :

<pre class="highlight">
if (!extension_loaded('pdo')) {
             * @see Zend_Db_Adapter_Exception
            require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception('The PDO extension is required for this adapter but the extension is not loaded');

However, when you look at the setFetchMode() method, it uses the PDO class without checking for the PDO extention presence which can lead to a "PDO class not found" bug. So I suggest to add a check for the PDO extension in that method too (no more methods need that)


Posted by julien PAULI (doctorrock83) on 2008-11-13T08:24:26.000+0000

Fixed at r12625

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:00.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


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

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