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

 ID:               51870
 Updated by:       johan...@php.net
 Reported by:      d...@php.net
 Summary:          PDO::fetchAll after a PDO::execute with bindings lead
                   to a segv.
-Status:           Closed
+Status:           Assigned
 Type:             Bug
 Package:          PDO related
 Operating System: Mac OS X
 PHP Version:      6SVN-2010-05-20 (SVN)
 Assigned To:      mysql

 New Comment:

re-open after comment from dave.


Previous Comments:
------------------------------------------------------------------------
[2010-05-21 19:55:25] dave at hobodave dot com

#0  0x00007fff82410886 in __kill ()

#1  0x00007fff824b0eae in abort ()

#2  0x00007fff823c8a75 in free ()

#3  0x00000001020eefc5 in pdo_mysql_stmt_fetch ()

#4  0x000000010008bffe in do_fetch_common ()

#5  0x000000010008c107 in do_fetch ()

#6  0x000000010008e3bf in zim_PDOStatement_fetchAll ()

#7  0x000000010020359a in zend_do_fcall_common_helper_SPEC ()

#8  0x00000001001ff93b in execute ()

#9  0x00000001001db29b in zend_execute_scripts ()

#10 0x0000000100183d62 in php_execute_script ()

#11 0x000000010026c985 in main ()

------------------------------------------------------------------------
[2010-05-21 19:47:29] dave at hobodave dot com

This still exists in the latest snapshot php5.3-201005211630.tar.gz



Test

----

<?php



$pdo = new PDO('mysql:dbname=test;host=localhost', 'root', '');

$stm = $pdo->prepare('SHOW FULL TABLES');

$stm->execute();

$stm->fetchAll();

------------------------------------------------------------------------
[2010-05-21 13:09:59] and...@php.net

Fixed in SVN, thank you for your report!

------------------------------------------------------------------------
[2010-05-21 13:09:30] and...@php.net

Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=299574
Log: Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv.

It is only in unreleased code and thus doesn't deserve a NEWS entry

------------------------------------------------------------------------
[2010-05-21 09:21:48] d...@php.net

Hunting down the bug it seems that 



mysqlnd.collect_memory_statistics = On



causes troubles.

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


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/bug.php?id=51870


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

Reply via email to