Edit report at https://bugs.php.net/bug.php?id=62803&edit=1
ID: 62803 Comment by: ataymail at gmail dot com Reported by: jackspr at hotmail dot com Summary: nextRowset not returning false Status: No Feedback Type: Bug Package: PDO related Operating System: Windows Server 2008 PHP Version: 5.3.15 Block user comment: N Private report: N New Comment: I have exactly the same problem, but I have 2 almost identical apache servers and it works good on one, but on the other - it doesn't. System: Windows 7 Business Edition Service Pack 1 i586 Working one (Zend Studio Server): Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8x PHP Version 5.3.21 Client API version mysqlnd 5.0.8-dev - 20102224 - $Id: 65fe78e70ce53d27a6cd578597722950e490b0d0 $ Non-working one (VertrigoServ): Apache/2.2.23 (Win32) PHP/5.3.18 Client API version mysqlnd 5.0.8-dev - 20102224 - $Id: 65fe78e70ce53d27a6cd578597722950e490b0d0 $ Non-working one (EasyPHP): Apache/2.4.4 (Win32) PHP/5.4.14 Client API version mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $ Does anybody has idea why it works only with Zend Studio Server and doesn't with another LAMPs? Previous Comments: ------------------------------------------------------------------------ [2013-02-18 00:35:58] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2012-09-13 16:08:09] ni...@php.net @ssufficool: Probably this is the same bug as https://bugs.php.net/bug.php?id=62820, which is a mysqlnd issue. ------------------------------------------------------------------------ [2012-09-13 04:01:16] ssuffic...@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Which PDO driver are you using? I.e. MySQL, MSSQL, DBLIB, PGSQL ------------------------------------------------------------------------ [2012-08-12 16:09:02] jackspr at hotmail dot com update ------------------------------------------------------------------------ [2012-08-12 16:06:11] jackspr at hotmail dot com Description: ------------ --- >From manual page: http://www.php.net/pdostatement.nextrowset#refsect1- pdostatement.nextrowset-seealso --- nextRowset is not returning false. The code below causes an exception in the fetchAll line because it is trying to access a result set does not exist. $r=0 $qy = "CALL getAllInfo()"; $istmt = $con->prepare($qy); if ($istmt->execute()) { $outcome = self::SUCCESS; do { $result[$r] = $istmt->fetchAll(PDO::FETCH_ASSOC); $r++; } while($istmt->nextRowset()); } Test script: --------------- $r=0 $qy = "CALL getAllInfo()"; $istmt = $con->prepare($qy); if ($istmt->execute()) { $outcome = self::SUCCESS; do { $result[$r] = $istmt->fetchAll(PDO::FETCH_ASSOC); $r++; } while($istmt->nextRowset()); } Expected result: ---------------- Clean exit with all possible resultsets in the result array. Actual result: -------------- exception 'PDOException' with message 'SQLSTATE[HY000]: General error' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62803&edit=1