xref: /PHP-7.4/Zend/tests/bug29104.phpt (revision 782352c5)
1--TEST--
2Bug #29104 (Function declaration in method doesn't work)
3--FILE--
4<?php
5class A
6{
7  function g()
8  {
9    echo "function g - begin\n";
10
11    function f()
12    {
13      echo "function f\n";
14    }
15
16    echo "function g - end\n";
17  }
18}
19
20$a = new A;
21$a->g();
22f();
23?>
24--EXPECT--
25function g - begin
26function g - end
27function f
28