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

From: Date: Wed, 23 May 2001 12:39:41 +0000
Subject: Bug #11047 Updated: Cannot put require() or include() within a class definition
Groups: php.dev 
Request: Send a blank email to php-dev+get-56473@lists.php.net to get a copy of this message
ID: 11047 Updated by: cynic Reported By: miguel222@mindless.com Status: Open Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: That's how it is, and how it'll be in foreseeable future. Previous Comments: --------------------------------------------------------------------------- [2001-05-23 05:36:18] miguel222@mindless.com 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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11047&edit=2

« previous php.dev (#56473) next »