Bug #53281 [Asn->Csd]: pdo_firebird memory leaks bound parameters
| From: | mariuz@php.net | Date: | Tue, 13 Dec 2016 09:52:25 +0000 |
| Subject: | Bug #53281 [Asn->Csd]: pdo_firebird memory leaks bound parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205950@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53281&edit=1
ID: 53281
Updated by: mariuz@php.net
Reported by: popescu_dumitru at yahoo dot com
Summary: pdo_firebird memory leaks bound parameters
-Status: Assigned
+Status: Closed
Type: Bug
Package: PDO Firebird
Operating System: Fedora 13
PHP Version: 5.3.3
Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
Closed , thanks for the report and testing
Previous Comments:
------------------------------------------------------------------------
[2016-12-12 19:13:16] dorin dot marcoci at gmail dot com
Tested this report on current branch master/7.2. Issue is not reproducible.
Probably it was fixed during previous commits.
D:\Projects\Php\phpdev\vc14\x64>x64\Debug_TS\php.exe x64\Debug_TS\test.php
array(1) {
[0]=>
array(2) {
["B"]=>
string(1) "B"
["C"]=>
string(1) "C"
}
}
OK!
D:\Projects\Php\phpdev\vc14\x64>
DDL:
SET SQL DIALECT 3;
CREATE TABLE TEST (
A DT_CHAR /* DT_CHAR = VARCHAR(1) */,
B DT_CHAR /* DT_CHAR = VARCHAR(1) */,
C DT_CHAR /* DT_CHAR = VARCHAR(1) */
);
COMMIT;
INSERT INTO TEST (A, B, C)
VALUES ('A', 'B', 'C');
COMMIT;
------------------------------------------------------------------------
[2010-11-09 17:22:09] popescu_dumitru at yahoo dot com
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 this bug report at https://bugs.php.net/bug.php?id=53281&edit=1