Bug #11047: Cannot put require() or include() within a class definition

From: Date: Wed, 23 May 2001 03:36:18 +0000
Subject: Bug #11047: Cannot put require() or include() within a class definition
Groups: php.dev 
Request: Send a blank email to php-dev+get-56414@lists.php.net to get a copy of this message
From: miguel222@mindless.com 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: http://bugs.php.net/?id=11047&edit=1

« previous php.dev (#56414) next »