#25623 [Fbk->Opn]: Memory leak in function load()

From: Date: Mon, 22 Sep 2003 10:04:55 +0000
Subject: #25623 [Fbk->Opn]: Memory leak in function load()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47928@lists.php.net to get a copy of this message
ID: 25623 User updated by: maoy at fjii dot com Reported By: maoy at fjii dot com -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: Windows XP PHP Version: 4.3.3 New Comment: In fact, I tried to use following codes: ocifetchinto($stmt, $arr,OCI_ASSOC); $result = $arr["CLOB_FLDNAME"]->load(); but it always cause memory leak on Windows system. It doesn't cause memory leak on Linux system. By the way, running environment is: Windows XP Apache 1.3.26 PHP 4.3.3 Oracle 8.1.7 I am looking forward to reply. Previous Comments: ------------------------------------------------------------------------ [2003-09-22 05:09:45] thies@php.net could you plz replace $result = OCIResult($stmt, "clob_fldname"); if (is_object ($result)) $result = $result->load(); against: ocifetchinto($stmt, $arr,OCI_ASSOC); $result = $arr["CLOB_FLDNAME"]->load(); as this is the code i use all the time and it doesn't (seem) to leak for me. ------------------------------------------------------------------------ [2003-09-21 22:55:48] maoy at fjii dot com memory leak size relate with value of the field, it also increase along with running times ------------------------------------------------------------------------ [2003-09-21 22:38:20] 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(); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25623&edit=1

« previous php.bugs (#47928) next »