#49344 [Fbk]: pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0)

From: Date: Wed, 09 Sep 2009 08:21:08 +0000
Subject: #49344 [Fbk]: pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142134@lists.php.net to get a copy of this message
 ID:               49344
 Updated by:       pajoye@php.net
 Reported By:      rockyjl at gmai dot com
 Status:           Feedback
 Bug Type:         PDO related
 Operating System: win2003 X64
 PHP Version:      5.2.11RC1
 Assigned To:      felipe
 New Comment:

Felipe, if you feel like your patch is correct, pls apply it. The next
snap will have it.

Let me know if you prefer to provide a test DLL prior to commit. I can
build one later today.


Previous Comments:
------------------------------------------------------------------------

[2009-09-09 07:16:50] Rockyjl at gmail dot com

I don't how to NMAKE source... Anyone can help me NMake the
php_pdo_mssql.dll and php_pdo.dll with this

Index: ext/pdo_dblib/dblib_driver.c
===================================================================
--- ext/pdo_dblib/dblib_driver.c	(revisão 288156)
+++ ext/pdo_dblib/dblib_driver.c	(cópia de trabalho)
@@ -231,9 +231,7 @@
 	}
 
 #if PHP_DBLIB_IS_MSSQL
-	if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) {
-		goto cleanup;
-	}
+	DBSETOPT(H->link, DBTEXTSIZE, "2147483647");
 #endif
 
 	if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) {

thank you so much !

------------------------------------------------------------------------

[2009-09-08 11:33:56] felipe@php.net

Hi, Can you try this patch in 5.2.11-dev?

http://felipe.c2zlabs.com/diff/bug49344.diff

------------------------------------------------------------------------

[2009-09-08 09:37:12] Rockyjl at gmail dot com

Apache/2.2.13 (Win32) PHP/5.2.11RC3-dev

Error:
[2009-09-08 17:34:13]
127.0.0.1
ApacheBench/2.3
SQLSTATE[] (null) (severity 0)

Help !!! Who can help me ? please !

------------------------------------------------------------------------

[2009-09-03 09:26:14] rockyjl at gmail dot com

web server is Apache 2.2.11 and Apache 2.2.13 x86 no_ssl

------------------------------------------------------------------------

[2009-08-27 08:27:57] rockyjl at gmail dot com

php-5.2.11RC2-dev-win32-VC6-x86 has the Bug too!

Anyone can help me ? Please !

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/49344

-- 
Edit this bug report at http://bugs.php.net/?id=49344&edit=1



Thread (17 messages)

« previous php.bugs (#142134) next »