|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-09-21 22:38 UTC] maoy at fjii dot com
Description:
------------
Web Server: Apache 1.3.26
When I get value of a field as Clob type, it always cause memory leak.
Reproduce code:
---------------
<?php
$conn = ocilogon("username","password");
$query = "SELECT clob_fldname FROM tablename";
$stmt = OCIParse ($conn, $query);
OCIExecute($stmt, OCI_DEFAULT);
$result = OCIResult($stmt, "clob_fldname");
if (is_object ($result)) $result = $result->load();
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
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; } ?>