ID: 20058
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Won\'t fix
Bug Type: Feature/Change Request
Operating System: RHL 7.2
PHP Version: 4.2.2
New Comment:
This has come up before on several occasions, and it was decided not to
implement is. (Although I would like to see this kind od functionality
too). You can try to write to [EMAIL PROTECTED] to show your
support for this though.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-10-24 07:25:01] [EMAIL PROTECTED]
It appears as if "include()" and "require()" cannot appear inside a
class definition, but outside a class method.
For example, the construct
class A {
include ('class_a_methods.php');
}
returns an error (unexpected T_INCLUDE), but
class A {
function foo() {
include ('class_a_foo_method.php');
}
}
works as expected.
This is a slight annoyance if one wants to keep class code in
manageable chunks. Please add this feature in an upcoming version!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20058&edit=1