fatal error: Allowed memory size of 8388608
Brought to you by:
jpap
I have a client site and I have been using the ffdb app for
a calendar. I had it running good. The client made
some changes (she doesnt know what she did) and now
I am getting this error:
Fatal error: Allowed memory size of 8388608 bytes
exhausted (tried to allocate 1936876873 bytes)
in /usr/local/etc/httpd/htdocs/centralpennparent/calendar/
ffdb.inc.php on line 2880
You can view it here:
http://www.centralpennparent.com/calendar/calendar.php
Can you help me with this? Usually, when I got this
errory in PHP, I would just up the allowed memory to
16M and that would do the trick. But it is trying to
allocate 2GB here and that just doesnt seem right.
Logged In: NO
BUGFIX - STATUS: TO BE CLOSED...
Hi,
because of changed behaviour of different php-versions in detecting/handling an error some errors couldnt detected in year 2002...
some of the errors may be suppressed by inserting an "@" in front of a returned variable, (return @$result) but the
very tricky part is this one:
function read_str($fp)
{
if (!feof($fp)) { // possible error 1
$strlen = $this->bin2dec(fread($fp, 4), 4);
return ($strlen > 0) ? fread($fp, $strlen) : ""; // possible error 2
}
else
return "";
}
I am using this database very often (but only strings, no arrays/bools) and if avoiding the situation of bug 772634, it is a very stable solution, (in php 4.2, 4.3, 4.4) and in giving back this bugfix to the community, i want to say thank you for this great program!
steelpandrummer/germany