/dev/null

Static is evil.

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 ;)

May 19, 2008

Updated version of Zend_Db_Adapter_Odbtp_Mssql

As people start asking me about that ODBTP adapter for Zend Framework, I will publish it as attachment to this post now. It should work with the latest version of Zend Framework (as reported by a developer). If you want to use it, just copy the files to your include path (make sure the path comes before the ZF path). Of course, you need to install ODBTP as well and add extension=php_odbtp_mssql.dll to your php.ini.

Download here

Powered by PHP, Memcached, Suhosin, MySQL and WordPress