Anonymous function created in a class:
getName {closure:Foo\Bar::testClass():8}
getNamespaceName
getClosureScopeClass Foo\Bar
Anonymous function created in a function:
getName {closure:Foo\testFunc():14}
getNamespaceName
getClosureScopeClass
Anonymous function created in a global scope:
getName {closure:/in/srIno:18}
getNamespaceName
getClosureScopeClass
First class callable of a static method:
getName testClass
getNamespaceName
getClosureScopeClass Foo\Bar
First class callable of a function:
getName Foo\testFunc
getNamespaceName Foo
getClosureScopeClass
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Anonymous function created in a class:
getName Foo\{closure}
getNamespaceName Foo
getClosureScopeClass Foo\Bar
Anonymous function created in a function:
getName Foo\{closure}
getNamespaceName Foo
getClosureScopeClass
Anonymous function created in a global scope:
getName Foo\{closure}
getNamespaceName Foo
getClosureScopeClass
First class callable of a static method:
getName testClass
getNamespaceName
getClosureScopeClass Foo\Bar
First class callable of a function:
getName Foo\testFunc
getNamespaceName Foo
getClosureScopeClass