|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-06 18:53 UTC] svn@php.net
[2009-12-06 18:55 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ PHP (debug build) detects memory leaks on this environment. - Linux Cent OS 5.3 (64bit) - unixODBC-2.2.15pre - Oracle instantclient 11.1 This occurs only when fetching Oracle "TIMESTANP" column on Linux. Reproduce code: --------------- <?php $dsn = "VALID_DATA_SOURCE_NAME"; $user = "VALID_USER_NAME"; $pass = "VALID_PASSWORD"; $conn = odbc_connect($dsn, $user, $pass); // sample table has this schema and has more than one row(s). // CREATE TABLE TEST (COLUMN1 TIMESTAMP) $ret = odbc_exec($conn, "SELECT COLUMN1 FROM TEST"); // Here detects leaking memory!! And, data seems normal state. $data = odbc_result($ret, 1); var_dump($data); odbc_close($conn); Actual result: -------------- string(26) "2009-11-13 00:00:00.000000" [Fri Nov 13 13:06:27 2009] Script: '/home/cybozu/oracle_timestamp.php' --------------------------------------- /home/cybozu/tmp/php/ext/odbc/php_odbc.c(429) : Block 0x04ae49a8 status: Beginning: OK (allocated on /home/cybozu/tmp/php/ext/odbc/php_odbc.c:984, 27 bytes) Start: OK End: Overflown (magic=0x00000030 instead of 0x6C71D1A1) 3 byte(s) overflown --------------------------------------- [Fri Nov 13 13:06:27 2009] Script: '/home/cybozu/oracle_timestamp.php' /home/cybozu/tmp/php/ext/odbc/php_odbc.c(984) : Freeing 0x04AE49A8 (27 bytes), script=/home/cybozu/oracle_timestamp.php === Total 1 memory leaks detected ===