From:             nicholas dot j dot miller at gmail dot com
Operating system: Linux
PHP version:      5.2.10
PHP Bug Type:     PDO related
Bug description:  PDO DBLIB Not Connecting in PHP 5.2.10

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)

-- 
Edit bug report at http://bugs.php.net/?id=48694&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48694&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48694&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48694&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48694&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48694&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48694&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48694&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48694&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48694&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48694&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48694&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48694&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48694&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48694&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48694&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48694&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48694&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48694&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48694&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48694&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48694&r=mysqlcfg

Reply via email to