mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
28 lines
326 B
PHP
28 lines
326 B
PHP
--TEST--
|
|
Bug #29104 (Function declaration in method doesn't work)
|
|
--FILE--
|
|
<?php
|
|
class A
|
|
{
|
|
function g()
|
|
{
|
|
echo "function g - begin\n";
|
|
|
|
function f()
|
|
{
|
|
echo "function f\n";
|
|
}
|
|
|
|
echo "function g - end\n";
|
|
}
|
|
}
|
|
|
|
$a = new A;
|
|
$a->g();
|
|
f();
|
|
?>
|
|
--EXPECT--
|
|
function g - begin
|
|
function g - end
|
|
function f
|