note 28156 rejected from function.include by jmcastagnetto

From: Date: Sat, 04 Jan 2003 07:16:13 +0000
Subject: note 28156 rejected from function.include by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41651@lists.php.net to get a copy of this message
In reply to Ernest above : To clarify an above example: The following code doesn't work as expected. class A { var $a; function A() { include("class_methods_func.php"); } } $a = new A(); var_dump(get_class_methods("A")); ----------------------- The methods are not available as would be expected. Is there anyway to have a flexible class definition using include/require statements?? I have tried a number of tests and none work. Is this a purposefull restriction??

« previous php.notes (#41651) next »