Bug #53281 [NEW]: memory leak in pdo_stmt.c
| From: | popescu_dumitru at yahoo dot com | Date: | Tue, 09 Nov 2010 16:22:14 +0000 |
| Subject: | Bug #53281 [NEW]: memory leak in pdo_stmt.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155892@lists.php.net to get a copy of this message | ||
From:
Operating system: Fedora 13
PHP version: 5.3.3
Package: PDO related
Bug Type: Bug
Bug description:memory leak in pdo_stmt.c
Description:
------------
php CLI reports memory leaks when running the script provided
Test script:
---------------
<?php
$dbh = new PDO("firebird:dbname=localhost:/tmp/test.gdb", "SYSDBA",
"masterkey");
$stmt2 = "SELECT B, C FROM test WHERE A = ? AND B = ?";
$stmth2 = $dbh->prepare($stmt2);
$stmth2->execute(array('A', 'B'));
$rows = $stmth2->fetchAll();
var_dump($rows);
$dbh = NULL;
?>
Actual result:
--------------
/root/src/php-5.3.3/ext/pdo/pdo_stmt.c(472) : Freeing 0x08D48B0C (2
bytes), script=tpdof3.php
/root/src/php-5.3.3/Zend/zend_variables.c(120) : Actual location (location
was relayed)
Last leak repeated 1 time
=== Total 2 memory leaks detected ===
--
Edit bug report at http://bugs.php.net/bug.php?id=53281&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53281&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53281&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53281&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53281&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53281&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53281&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53281&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53281&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53281&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53281&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53281&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53281&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53281&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53281&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53281&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53281&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53281&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53281&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53281&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53281&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53281&r=mysqlcfg