#44210 [Opn->Bgs]: Parser accepts functions in functions
| From: | felipe@php.net | Date: | Fri, 22 Feb 2008 11:17:43 +0000 |
| Subject: | #44210 [Opn->Bgs]: Parser accepts functions in functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122573@lists.php.net to get a copy of this message | ||
ID: 44210
Updated by: felipe@php.net
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