php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48694 PDO DBLIB Not Connecting in PHP 5.2.10
Submitted: 2009-06-25 14:02 UTC Modified: 2009-06-25 16:35 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: nicholas dot j dot miller at gmail dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 5.2.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nicholas dot j dot miller at gmail dot com
New email:
PHP Version: OS:

 

 [2009-06-25 14:02 UTC] nicholas dot j dot miller at gmail dot com
Description:
------------
After compiling and installing PHP 5.2.10, the dblib PDO driver has appeared to stop connecting. This bug has also been documented in bug #48539 for PHP 5.3.0RC4

Reproduce code:
---------------
try {
    $hostname = 'sql.example.com';
    $port     = 1433;
    $dbname   = 'dbname';
    $username = 'username';
    $password = 'password';
    $dsn      = sprintf('dblib:host=%s:%d;dbname=%s', $hostname, $port, $dbname);

    $dbh = new PDO ($dsn, $username, $password);
    
    echo 'Yippie!';
    
} catch (PDOException $e) {
    echo $e->getMessage();
}


Expected result:
----------------
Yippie

Actual result:
--------------
SQLSTATE[] (null) (severity 0)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-25 16:35 UTC] kalle@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 17:01:34 2024 UTC