Req #55025 [Com]: PDO Base Class not supplied with archive
| From: | kissifrot at gmail dot com | Date: | Fri, 24 Feb 2012 17:35:32 +0000 |
| Subject: | Req #55025 [Com]: PDO Base Class not supplied with archive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167797@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55025&edit=1
ID: 55025
Comment by: kissifrot at gmail dot com
Reported by: wjaspers at nuaire dot com
Summary: PDO Base Class not supplied with archive
Status: Open
Type: Feature/Change Request
Package: PDO related
Operating System: Win32
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
PDO base class is included in PHP 5.3, so you don't need a dll for it.
You need to activate the appropriate PDO extension DLL corresponding to your DB, php_pdo_mysql.dll
in your case.
Previous Comments:
------------------------------------------------------------------------
[2011-06-10 15:09:32] wjaspers at nuaire dot com
Description:
------------
---
From manual page: http://www.php.net/class.pdo
---
When installing PHP5.3, there is no php_pdo.dll included with the PHP package.
It's therefore impossible to use any of the PDO database drivers.
Plus, using the php_pdo.dll from the latest PHP5.2 archive doesn't work because
new constants aren't available to it.
Test script:
---------------
<?php
$pdo = new PDO(
'mysql:host=hostname;dbname=defaultDbName',
'username',
'password',
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
);
Expected result:
----------------
$pdo should be a connection to a database
Actual result:
--------------
Fatal error: Class 'PDO' not found ...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55025&edit=1