ID: 37605 User updated by: randall dot carlson at navy dot mil Reported By: randall dot carlson at navy dot mil -Status: No Feedback +Status: Open Bug Type: PDO related Operating System: REL 4 PHP Version: 5.1.4 New Comment:
I've been contacted by another user with the same issue. Please review with laurinkus at gmail dot com. Previous Comments: ------------------------------------------------------------------------ [2006-07-24 21:33:49] laurinkus at gmail dot com Facing same problem with 5.1.4 on FreeBSD 5.1 and MySQL 5.1.11. Code extract below: function getOMXDailySnapshot($submarkets_id) { $db = Zend::registry('db'); $stm = $db->prepare('CALL omx_daily_snapshot(:submarket_id)'); $stm->bindValue('submarket_id',$submarkets_id); $stm->execute(); $result = $stm->fetchAll(); return $result; } It seems to me that it is somehow related to result set length. ------------------------------------------------------------------------ [2006-06-28 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-06-20 14:44:42] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Still can't reproduce. ------------------------------------------------------------------------ [2006-06-05 20:50:26] randall dot carlson at navy dot mil Well, my problem involves database access with PDO, so I don't know how to convey the problem without a database. As far as the script itself: <?php $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>"; ?> That is all of it, except for the MySQL stored procedure script: create procedure pdo_test() begin select dummy from dummy; end; ------------------------------------------------------------------------ [2006-05-30 11:42:18] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ 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/37605 -- Edit this bug report at http://bugs.php.net/?id=37605&edit=1