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

From: Date: Wed, 23 May 2001 12:40:03 +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-56474@lists.php.net to get a copy of this message
ID: 11047 Updated by: cynic Reported By: miguel222@mindless.com Old-Status: Open Status: Closed Bug Type: Feature/Change Request Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: 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 (#56474) next »