[imp] require_once inside of functions are dangerous

Jan Schneider jan at horde.org
Wed Mar 25 18:03:06 UTC 2009


Zitat von Earnie Boyd <earnie at users.sourceforge.net>:

> 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 0.9.6.2 (cli) (built: Feb 11  
> 2009 20:09:52)
>
> Regards,
> Earnie
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>


Please create a ticket on http://bugs.horde.org/.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list