From:             [EMAIL PROTECTED]
Operating system: RH Linux 7.0
PHP version:      4.0.4pl1
PHP Bug Type:     Feature/Change Request
Bug description:  Cannot put require() or include() within a class definition

class foo {
  function foo() {

  require "foo_functions.php";


The above code returns the following parse error:

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or 
`'}'' in foo.class.php on line 5

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to