[dev] Crushing temp file generation in Turba Objects

Michael M Slusarz slusarz at horde.org
Tue Oct 25 06:18:05 UTC 2011

What does this code do in Turba_Object#getValue() (line 110-17)?

            return empty($this->attributes[$attribute])
                 ? null
                 : array(
                       'load' => array(
                           'data' => $this->attributes[$attribute],
                           'file' =>  
basename(Horde::getTempFile('horde_form_', false))

Initializing a compose window causes 100's of empty temp files to be  
created in the system temp directory - this occurs when the contact  
autocompletion code is initialized.  These files are created once a  
session.  After a weeks worth of logins, I have 5,000+ of these temp  
files, that are never cleaned up.  This is not good.


Michael Slusarz [slusarz at horde.org]

More information about the dev mailing list