[dev] big issue with include_once !
Chuck Hagenbuch
chuck@horde.org
Thu, 19 Jul 2001 15:31:37 -0400
Quoting Anil Madhavapeddy <anil@recoil.org>:
> I actually think just include() is enough to sort the problem out,
> instead of include_once. Also, I didn't bother checking the return
> value of include_once(), since the drivers _must_ be there, or the
> application installation is corrupted somehow.
include is very, VERY incorrect - you can't define a class twice. And we should
trap for things like the installation being corrupted - we need to be a lot
better about error reporting! We just need to make sure that the file include
succeedes, _or_ is already included. I can take care of this, hopefully later
tonight.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.