From:             rockyjl at gmai dot com
Operating system: win2003 X64
PHP version:      5.2.11RC1
PHP Bug Type:     PDO related
Bug description:  pdo_mssql fails to connect,throws PDOException SQLSTATE[] 
(null) (severity 0)

Description:
------------
in Bug #48539

[28 Jun 2:10am UTC] fel...@php.net 
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in 5.2 and HEAD.
5.3 in soon.

Thanks.

But the bug still often happen in PHP 5.2.11RC1 ...

Could you tell me which version(win32 zip) can work in the environment of
win2003 x64 + apache 2.2.11 + sql2005,and the pdo_mssql can connect DB
successfully ??

Reproduce code:
---------------
function db()
{
        try
        {
                $db = new PDO(DB_DSN, DB_User, DB_Password);
                return $db;
        }
        catch (PDOException $e)
        {
                die($e->getMessage());
        }
        
}

Expected result:
----------------
connect DB Successful


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

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

Reply via email to