Bug #51870 [Com]: PDO::fetchAll after a PDO::execute with bindings lead to a segv.
| From: | dave at hobodave dot com | Date: | Fri, 21 May 2010 17:47:29 +0000 |
| Subject: | Bug #51870 [Com]: PDO::fetchAll after a PDO::execute with bindings lead to a segv. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150716@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51870&edit=1
ID: 51870
Comment by: dave at hobodave dot com
Reported by: dsp@php.net
Summary: PDO::fetchAll after a PDO::execute with bindings lead
to a segv.
Status: Closed
Type: Bug
Package: PDO related
Operating System: Mac OS X
PHP Version: 6SVN-2010-05-20 (SVN)
Assigned To: mysql
New Comment:
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();
Previous Comments:
------------------------------------------------------------------------
[2010-05-21 13:09:59] andrey@php.net
Fixed in SVN, thank you for your report!
------------------------------------------------------------------------
[2010-05-21 13:09:30] andrey@php.net
Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&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] dsp@php.net
Hunting down the bug it seems that
mysqlnd.collect_memory_statistics = On
causes troubles.
------------------------------------------------------------------------
[2010-05-20 13:46:45] dsp@php.net
Sorry I forgot to add my configure:
'./configure' \
'--with-mysql=mysqlnd' \
'--with-pdo-mysql=mysqlnd' \
------------------------------------------------------------------------
[2010-05-20 13:43:54] mike@php.net
erm, this should have been http://snaps.php.net/php-trunk-latest.tar.gz
------------------------------------------------------------------------
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