#48037 [Opn->Fbk]: Error "zend_mm_heap corrupted" when binding a param in an sql comment
| From: | kalle@php.net | Date: | Tue, 21 Apr 2009 19:04:37 +0000 |
| Subject: | #48037 [Opn->Fbk]: Error "zend_mm_heap corrupted" when binding a param in an sql comment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136106@lists.php.net to get a copy of this message | ||
ID: 48037
Updated by: kalle@php.net
Reported By: mailinglists at if-core dot de
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: SUSE ES 10 SP2 (x86_64)
PHP Version: 5.2.9
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-04-21 12:47:21] mailinglists at if-core dot de
Description:
------------
The error "zend_mm_heap corrupted" and eventually a "Segmentation
fault" error occurs when I try to use bindParam for a parameter which is
commented out in the sql statement.
The error occurs only and then even not at all times if i use
persistent connections
I reproduced the error on two servers, both running with PDO_OCI and
persistent connections.
Reproduce code:
---------------
<?php
$user_id=1;
$dbh = new PDO('oci:dbname=//127.0.0.1:1521/xe;charset=AL32UTF8', 'xx',
'xx', array(PDO::ATTR_PERSISTENT => true));
$dbx = $dbh->prepare('
SELECT
id
FROM
user_data
/* ? */
');
$dbx->bindParam(1, $user_id);
$dbx->execute();
var_dump($dbx->fetchAll());
?>
Expected result:
----------------
An array with the contents of the Database-Table user_data
Actual result:
--------------
A blank page and errors in the error_log of the Apache Server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48037&edit=1