[imp] require_once inside of functions are dangerous

Earnie Boyd earnie at users.sourceforge.net
Wed Mar 25 13:16:49 UTC 2009

Maintainers please take note:

When using require_once for things like IMP_BASE .  
'/config/header.php' and the file has been included once already the  
second occurrence causes the $_header array to not be defined and  
errors are issued to the user.  I changed line 133 of  
lib/MIME/Headers.php substituting "require_once" with "require" to  
resolve the issue.  I only noticed the issue when reporting spam.   
Please excuse the lame report; I don't have time to chase a proper  
patch (the usual cry from users).

PHP 5.2.4-2ubuntu5.5 with Suhosin-Patch (cli) (built: Feb 11  
2009 20:09:52)


This message was sent using IMP, the Internet Messaging Program.

More information about the imp mailing list