From:             mailinglists at if-core dot de
Operating system: SUSE ES 10 SP2 (x86_64)
PHP version:      5.2.9
PHP Bug Type:     PDO related
Bug description:  Error "zend_mm_heap corrupted" when binding a param in an sql 
comment

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 bug report at http://bugs.php.net/?id=48037&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48037&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48037&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48037&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48037&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48037&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48037&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48037&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48037&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48037&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48037&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48037&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48037&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48037&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48037&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48037&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48037&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48037&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48037&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48037&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48037&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48037&r=mysqlcfg

Reply via email to