ID: 37605 User updated by: randall dot carlson at navy dot mil Reported By: randall dot carlson at navy dot mil -Status: Feedback +Status: Open Bug Type: PDO related Operating System: REL 4 PHP Version: 5.1.4 New Comment:
My code is within a portal application so, your test is slightly different than mine. Again, as of PHP 5.1.2, the portal application and my code works just fine. It was only when PHP 5.1.4 was built that this issue appeared. Now as I monitor the mysql logs, I have discovered that when it hangs, the stored procedure calls appear to be executing twice (while one call was issued). Previous Comments: ------------------------------------------------------------------------ [2006-05-29 11:10:03] [EMAIL PROTECTED] Works perfectly fine here. But doesn't output any results, of course, since there is no "dummy" table with "dummy" field. ------------------------------------------------------------------------ [2006-05-26 17:09:43] randall dot carlson at navy dot mil Description: ------------ It appears the PDO execute is hanging when a MySQL stored procedure is called. The same code works fine on PHP 5.1.2 & MySQL 4.0.21. Once we upgraded to 5.1.4, the problem began. It looks as if the call is being executed a couple of times in the MySQL queries.log. Our application code has many such calls and after attempting to execute each one the browser eventually timesout. When I subtitute the SQL statment in the prepare, it comes back fine. Reproduce code: --------------- create procedure pdo_test() begin select dummy from dummy; end; $pdo = new PDO("mysql:host=localhost;dbname=x","x","x"); $stmt = $pdo->prepare("call pdo_test()"/*"select dummy from dummy;"*/); $stmt->execute(); echo "<B>outputting...</B><BR>"; while ($rs = $stmt->fetch(PDO::FETCH_OBJ)) { echo "output: ".$rs->dummy."<BR>"; } echo "<BR><B>".date("r")."</B>"; Expected result: ---------------- should get outputting... output: 1 Fri, 26 May 2006 13:02:17 -0400 Actual result: -------------- timeout ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37605&edit=1