Exception in /in/rgmh8:24
Stack trace:
#0 /in/rgmh8(12): Test2->foo()
#1 /in/rgmh8(13): Test2->{closure}()
#2 /in/rgmh8(13): Closure->__invoke()
#3 /in/rgmh8(21): userland_call_user_func(Array)
#4 /in/rgmh8(29): Test1->callFoo('userland_call_u...')
#5 {main}
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access private method Test2::foo() in /in/rgmh8:21
Stack trace:
#0 /in/rgmh8(21): call_user_func(Array)
#1 /in/rgmh8(30): Test1->callFoo('call_user_func')
#2 {main}
thrown in /in/rgmh8 on line 21
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Exception in /in/rgmh8:24
Stack trace:
#0 /in/rgmh8(12): Test2->foo()
#1 /in/rgmh8(13): Test2->{closure}()
#2 /in/rgmh8(13): Closure->__invoke()
#3 /in/rgmh8(21): userland_call_user_func(Array)
#4 /in/rgmh8(29): Test1->callFoo('userland_call_u...')
#5 {main}
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access private method Test2::foo() in /in/rgmh8:21
Stack trace:
#0 /in/rgmh8(21): call_user_func(Array)
#1 /in/rgmh8(30): Test1->callFoo('call_user_func')
#2 {main}
thrown in /in/rgmh8 on line 21
Process exited with code 255.