php-src/Zend/tests/bug29104.phpt
2018-10-14 12:07:20 -03:00

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