#25623 [Opn->Csd]: Memory leak in function load()
| From: | thies@php.net | Date: | Sat, 06 Dec 2003 12:06:26 +0000 |
| Subject: | #25623 [Opn->Csd]: Memory leak in function load() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51746@lists.php.net to get a copy of this message | ||
ID: 25623
Updated by: thies@php.net
Reported By: maoy at fjii dot com
-Status: Open
+Status: Closed
Bug Type: OCI8 related
Operating System: Windows XP
PHP Version: 4.3.3
New Comment:
fixed by upgradeing oracle (see last comment of
reporter)
Previous Comments:
------------------------------------------------------------------------
[2003-11-18 03:31:33] maoy at fjii dot com
when I replaced ORACLE 8.1.7 against ORACLE 9.2, the situation
disappeared.
------------------------------------------------------------------------
[2003-11-17 21:50:41] sniper@php.net
And do answer Thies' question: Does _PHP_ report any leaks when
compiled with --enable-debug (on linux)
------------------------------------------------------------------------
[2003-11-17 21:49:49] sniper@php.net
You can find debug enabled win32 builds here:
http://www.thebrainroom.net/php-snaps
------------------------------------------------------------------------
[2003-10-23 23:03:52] maoy at fjii dot com
I had a try to run the following code on windows and linux, it cause
memory leak on both platform. The size of memory leak depends on the
size of CLOB-field's value and record count.
<?php
$conn = ocilogon("username","password","sid");
$query = "SELECT CLOB_FldName FROM tablename";
$stmt = OCIParse ($conn, $query);
OCIExecute($stmt);
while(ocifetchinto($stmt, $arr,OCI_ASSOC)){
$result = $arr["CLOB_FldName"]->load();
ecco $result;
}
?>
------------------------------------------------------------------------
[2003-10-09 20:08:47] maoy at fjii dot com
I'm not able to compile a debug-build, but it's undoubted that the
function cause memory leak. Please help me as soon as possible.
I am looking forward to reply. Thank you very much.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25623
--
Edit this bug report at http://bugs.php.net/?id=25623&edit=1