|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-12-27 11:52 UTC] tobi at blackswan dot ch
Description:
------------
Maybe it's nothing but my stupidness ;)
When I do this ->
$headers = imap_fetch_overview($mbox,$start.":{$end}",0);
for ($i = 0; $i <= count($headers) ; $i++) {
$headers[$i]->subject="fritz";
}
--> Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 43 bytes) ...
When I do this ->
$headers = imap_fetch_overview($mbox,$start.":{$end}",0);
$temp=count($headers);
for ($i = 0; $i <= $temp ; $i++) {
$headers[$i]->subject="fritz";
}
--> All fine...
$headers has 3 records...
cheers
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Are you increasing the size of $headers ? because of $headers[$i] not being defined or something ? FWIW, you could have simply used foreach($headers as $h) { $h->subject="fritz"; }