ID: 44210 Updated by: [EMAIL PROTECTED] Reported By: dorthe at luebbert dot net -Status: Open +Status: Bogus Bug Type: *Compile Issues Operating System: Linux PHP Version: 5.2.5 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 isn't a bug. See http://docs.php.net/functions Previous Comments: ------------------------------------------------------------------------ [2008-02-22 10:09:43] dorthe at luebbert dot net Description: ------------ php -l does not report any error on the code listed above(result of a unresolved merge conflict), this means functions are accepted within functions (it does not work if you add public to the doA or doB-function). Reproduce code: --------------- <?php class something { public function getData() { print "foo"; function doA() { return $a; } function doB() { return $b; } print "bar"; return $data; } } ?> Expected result: ---------------- error. Actual result: -------------- no error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44210&edit=1