|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-03-21 20:26 UTC] shrimpwagon at yahoo dot com
-: shawnhausser at yahoo dot com
+: shrimpwagon at yahoo dot com
[2013-03-21 20:26 UTC] shrimpwagon at yahoo dot com
[2013-03-22 04:12 UTC] laruence@php.net
[2013-03-22 04:12 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2013-03-22 14:26 UTC] shrimpwagon at yahoo dot com
[2013-03-22 14:26 UTC] shrimpwagon at yahoo dot com
-Status: Feedback
+Status: Open
[2013-03-28 14:01 UTC] shrimpwagon at yahoo dot com
[2013-06-12 04:46 UTC] ssufficool@php.net
[2013-06-12 04:47 UTC] ssufficool@php.net
-Summary: PDO fetch method causes server reset
+Summary: DBLIB: PDO fetch method causes server reset
[2014-01-01 12:33 UTC] felipe@php.net
-Package: PDO related
+Package: PDO ODBC
[2014-10-21 04:10 UTC] ssufficool@php.net
-Summary: DBLIB: PDO fetch method causes server reset
+Summary: ODBC: PDO fetch method causes server reset
[2020-09-28 14:02 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-09-28 14:02 UTC] cmb@php.net
[2020-10-11 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
Description: ------------ I can connect fine. The PDOStatement::fetch method causes a web server connection reset when another method is called after the PDOStatement::execute method and before the PDOStatement::fetch. See test script. - Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2 - FreeTDS 0.91 - Apache/2.4.4 (Unix) OpenSSL/1.0.1c - Connecting to a Microsoft SQL Server 2005 - 9.00.5000.00 (X64) apt-get install freetds-common freetds-dev freetds-bin tdsodbc unixodbc-dev ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --enable-sockets --with-openssl --with-mysql --with-mcrypt --enable-mbstring --enable-bcmath --enable-calendar --with-curl --with-gd --with-bz2 --enable-exif --enable-ftp --with-gettext --with-mhash --with-mysqli --enable-soap --enable-wddx --enable-zip --with-pdo-mysql --with-pdo-odbc=unixODBC,/usr Test script: --------------- $db = new PDO('odbc:Driver=FreeTDS; Server=127.0.0.1; Port=1433; Database=mssqldb', 'mssqluser', 'mssqlpass'); $statement = $db->prepare('SELECT * FROM table'); $statement->execute(); $count = $statement->rowCount(); // Comment this line and it works fine. Even var_dump($statement) will cause the same problem. $result = $statement->fetch(PDO::FETCH_NUM); Expected result: ---------------- For fetch to not reset connection and return a proper result Actual result: -------------- Server reset.