|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-07 20:33 UTC] sixd@php.net
[2010-01-20 19:18 UTC] sixd@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ I have this function which runs well on Php 4.9 : function lire_structure($inlist_stru,$link) { if ($inlist_stru=='') return ''; $stmt = OCIParse($link,"select STRU_ID,STRU_MOLFILE from sub_structure_view where stru_id in(".$inlist_stru.")"); OCIExecute($stmt); while (OCIFetchInto ($stmt, $row, OCI_RETURN_LOBS)) { $i++; $tabstru[$row[0]]=$row[1]; //echo "$i<br>"; } return $tabstru; } But when I used it on php 5.2.9 : I have this following error : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 524288 bytes) So I change the memory limit of php.ini from 128 M to 512 (256 m is not enough) and the function works well. But I'm asking why with php 4.9 where the memory limit of php.ini is only at 8 M, the function works well? I see in internet forum that php 5 releases memory no correctly. Could you help me? Actual result: -------------- I have this following error : Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 524288 bytes)