Originally posted by bernouli
and what is it on line 5 in thefile.php?
The include statement. (Interesting, my copy of PHP tells me an unexpected T_INCLUDE was found...)
I'm wondering whether this behaviour (non-inclusion in classes) is a bug or not. Generally, include files are for commonly used portions of code (class definitions, abstraction layers, utility functions, etc.). If the included file in this situation were similar, then it would be cause to abstract those common functions out into a superclass. Furthermore, allowing files to be included in class defintions would almost be multiple inheritance by the back door.
Instead, this include is just being used to make a particular file physically smaller - which ultimately makes no difference to the code or to PHP.
Does that sound like enough justification for the behaviour?