From: kiet dot tran at enscm dot fr
Operating system: linux Redhat ES 4.7
PHP version: 5.2.9
PHP Bug Type: Performance problem
Bug description: problem with error error: Allowed memory size of 134217728
bytes exhausted
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)
--
Edit bug report at http://bugs.php.net/?id=47908&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47908&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47908&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47908&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47908&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47908&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47908&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47908&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47908&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47908&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47908&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47908&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47908&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47908&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47908&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47908&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47908&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47908&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47908&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47908&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47908&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47908&r=mysqlcfg