|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-09 17:22 UTC] 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 ===
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 15:00:02 2025 UTC |
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;