ID: 46953 Updated by: [email protected] Reported By: tobi at blackswan dot ch Status: Bogus Bug Type: Class/Object related Operating System: * PHP Version: 5.2.6 New Comment:
. Previous Comments: ------------------------------------------------------------------------ [2008-12-31 21:30:36] [email protected] . ------------------------------------------------------------------------ [2008-12-27 14:42:14] tobi at blackswan dot ch You're right, I can do it this way to. I'm just editing data in a stdclass object. ------------------------------------------------------------------------ [2008-12-27 14:35:01] [email protected] 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"; } ------------------------------------------------------------------------ [2008-12-27 11:53:42] tobi at blackswan dot ch forgot to mention... PHP Version is 5.2.6. ------------------------------------------------------------------------ [2008-12-27 11:52:22] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46953&edit=1
