Deprecated: wrapper(): Implicitly marking parameter $maxLength as nullable is deprecated, the explicit nullable type must be used instead in /in/biaIs on line 7
wrapper("a",2)
string(9) "wrapper: "
array(2) {
[0]=>
string(1) "a"
[1]=>
int(2)
}
string(17) "wrapper slice-3: "
array(0) {
}
wrapper("a",2,PDO::PARAM_INT)
string(9) "wrapper: "
array(3) {
[0]=>
string(1) "a"
[1]=>
int(2)
[2]=>
int(1)
}
string(17) "wrapper slice-3: "
array(0) {
}
wrapper("a","foo",PDO::PARAM_INT)
string(9) "wrapper: "
array(3) {
[0]=>
string(1) "a"
[1]=>
string(3) "foo"
[2]=>
int(1)
}
string(17) "wrapper slice-3: "
array(0) {
}
wrapper("a","foo",PDO::PARAM_INT,3)
string(9) "wrapper: "
array(4) {
[0]=>
string(1) "a"
[1]=>
string(3) "foo"
[2]=>
int(1)
[3]=>
int(3)
}
string(17) "wrapper slice-3: "
array(1) {
[0]=>
int(3)
}
wrapper("a","foo",PDO::PARAM_INT,null)
string(9) "wrapper: "
array(4) {
[0]=>
string(1) "a"
[1]=>
string(3) "foo"
[2]=>
int(1)
[3]=>
NULL
}
string(17) "wrapper slice-3: "
array(1) {
[0]=>
NULL
}
Deprecated: PDOStatement::bindParam(): Passing null to parameter #4 ($maxLength) of type int is deprecated in /in/biaIs on line 13
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.
wrapper("a",2)
Fatal error: Uncaught TypeError: Argument 2 passed to wrapper() must be an instance of mixed, int given, called in /in/biaIs on line 17 and defined in /in/biaIs:7
Stack trace:
#0 /in/biaIs(17): wrapper('a', 2)
#1 {main}
thrown in /in/biaIs on line 7
Process exited with code 255.