|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-22 11:17 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 04:00:01 2025 UTC |
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