note 28156 added to function.include

From: Date: Sat, 04 Jan 2003 03:44:25 +0000
Subject: note 28156 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-41643@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?? -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+28156 http://master.php.net/manage/user-notes.php?action=delete+28156 http://master.php.net/manage/user-notes.php?action=reject+28156

« previous php.notes (#41643) next »