/dev/null

Elite is stupid. Back to the roots.

August 19, 2008

Memory wasting Zend_Mail

Tags: , , — 02:54

I just wrote a small script to manage my mails… turns out that Zend_Mail uses some special trick that causes a fatal error:

Reading 3274 messages…

Fatal error: Out of memory (allocated 11534336) (tried to allocate 18446744073709551615 bytes) in /usr/share/php/libzend-framework-php/Zend/Mail/Storage/Mbox.php on line 198

That’s around 17179869183 TB of memory… to read 3274 mails… makes 5247363 TB per message… not bad ;)

2 Comments »

  1. Could you please create an issue in our issue tracker for this with all relevant details you have so we can look in to this? http://framework.zend.com/issues

    Thanks.
    ,Wil

    Comment by Wil Sinclair — August 19, 2008 @ 15:46

  2. A ticket for that issue can be found at http://framework.zend.com/issues/browse/ZF-4007

    Comment by Michael — August 20, 2008 @ 11:55

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by PHP, Memcached, Suhosin, MySQL and WordPress