Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Sample\resource" or import the class with "use" to suppress this warning in /in/TjVWS on line 11
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Sample\resource" or import the class with "use" to suppress this warning in /in/TjVWS on line 15
bool(true)
1 called!
Fatal error: Uncaught TypeError: Sample\f2(): Argument #1 ($f) must be of type Sample\resource, resource given, called in /in/TjVWS on line 20 and defined in /in/TjVWS:11
Stack trace:
#0 /in/TjVWS(20): Sample\f2(Resource id #2)
#1 {main}
thrown in /in/TjVWS on line 11
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
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Sample\resource" or import the class with "use" to suppress this warning in /in/TjVWS on line 11
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\Sample\resource" or import the class with "use" to suppress this warning in /in/TjVWS on line 15
bool(true)
1 called!
Fatal error: Uncaught TypeError: Sample\f2(): Argument #1 ($f) must be of type Sample\resource, resource given, called in /in/TjVWS on line 20 and defined in /in/TjVWS:11
Stack trace:
#0 /in/TjVWS(20): Sample\f2(Resource id #2)
#1 {main}
thrown in /in/TjVWS on line 11
Process exited with code 255.
bool(true)
1 called!
Fatal error: Uncaught TypeError: Argument 1 passed to Sample\f2() must be an instance of Sample\resource, resource given, called in /in/TjVWS on line 20 and defined in /in/TjVWS:11
Stack trace:
#0 /in/TjVWS(20): Sample\f2(Resource id #2)
#1 {main}
thrown in /in/TjVWS on line 11
Process exited with code 255.
Output for 5.6.0 - 5.6.40
bool(true)
1 called!
Catchable fatal error: Argument 1 passed to Sample\f2() must be an instance of Sample\resource, resource given, called in /in/TjVWS on line 20 and defined in /in/TjVWS on line 11
Process exited with code 255.