[dev] big issue with include_once !
Anil Madhavapeddy
anil@recoil.org
Thu, 19 Jul 2001 20:42:57 +0100
mailling@bigfoot.com wrote:
> if (include_once dirname(__FILE__) . '/Group/' . $driver
> . '.php') {
> $class = 'Group_' . $driver;
> return new $class($params);
> } else {
> return false;
> }
> }
>
Ack. I fixed this issue when I was doing the MIME_Viewer factory class,
but I neglected to go around the other code and change it there as well.
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.
Anil