[Tickets #8122] require_once inside of functions are dangerous

bugs at horde.org bugs at horde.org
Thu Mar 26 15:56:46 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8122
------------------------------------------------------------------------------
  Ticket             | 8122
  Created By         | earnie at users.sourceforge.net
  Summary            | require_once inside of functions are dangerous
  Queue              | IMP
  Version            | 4.3.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


earnie at users.sourceforge.net (2009-03-26 11:56) wrote:

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)






More information about the bugs mailing list