ID: 27569 Updated by: [EMAIL PROTECTED] Reported By: jochen at kokemuller dot de -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Linux PHP Version: 5.0.0b4 (beta4) New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This is not supposed to work. Previous Comments: ------------------------------------------------------------------------ [2004-03-11 10:23:51] jochen at kokemuller dot de Description: ------------ require/include does not work within a class definition! I also found bug #11835 with status closed dealing the same topic, but it doesn't seem closed to me! Reproduce code: --------------- <?php //This is file foo.php class foo { // whatever bar.php // neither works with include require("./bar.php"); } ?> Expected result: ---------------- I would expect it to work same way as it does in a function defnition. Actual result: -------------- Parse error: parse error, expecting `T_FUNCTION' in foo.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27569&edit=1
