Edit report at http://bugs.php.net/bug.php?id=51870&edit=1
ID: 51870
Updated by: uw@php.net
Reported by: dsp@php.net
Summary: PDO::fetchAll after a PDO::execute with bindings lead
to a segv.
-Status: Assigned
+Status: Closed
Type: Bug
Package: PDO related
Operating System: Mac OS X
PHP Version: 6SVN-2010-05-20 (SVN)
Assigned To: mysql
New Comment:
As Dave says, its been his env fooling him
Previous Comments:
------------------------------------------------------------------------
[2010-05-21 21:28:29] dave at hobodave dot com
Please disregard my previous comments. My environment was screwed, and
an old
pdo_mysql version was being loaded dynamically.
------------------------------------------------------------------------
[2010-05-21 20:12:31] johannes@php.net
re-open after comment from dave.
------------------------------------------------------------------------
[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] andrey@php.net
Fixed in SVN, thank you for your 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/bug.php?id=51870--
Edit this bug report at http://bugs.php.net/bug.php?id=51870&edit=1