Req #55025 [Opn->Nab]: PDO Base Class not supplied with archive
| From: | adambaratz@php.net | Date: | Wed, 01 Mar 2017 22:40:10 +0000 |
| Subject: | Req #55025 [Opn->Nab]: PDO Base Class not supplied with archive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207645@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
Updated by: adambaratz@php.net
Reported by: wjaspers at nuaire dot com
Summary: PDO Base Class not supplied with archive
-Status: Open
+Status: Not a bug
Type: Feature/Change Request
Package: PDO related
Operating System: Win32
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
Shouldn't need to keep this open anymore. It's a user install issue with an no longer
supported version of PHP.
Previous Comments:
------------------------------------------------------------------------
[2012-02-24 17:35:32] kissifrot at gmail dot com
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.
------------------------------------------------------------------------
[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