Original (expected):
stdClass Object
(
[c1] => v1
[c2] => v2
)
PDOStatement::setFetchMode:
Fatal error: Uncaught ValueError: PDOStatement::fetch(): Argument #1 ($mode) must be a bitmask of PDO::FETCH_* constants in /in/1sLR3H:16
Stack trace:
#0 /in/1sLR3H(16): PDOStatement->fetch()
#1 {main}
thrown in /in/1sLR3H on line 16
Process exited with code 255.
Original (expected):
stdClass Object
(
[c1] => v1
[c2] => v2
)
PDOStatement::setFetchMode:
Array
(
[c1] => v1
[0] => v1
[c2] => v2
[1] => v2
)
PDOStatement::fetch:
stdClass Object
(
[c1] => v1
[c2] => v2
)
PDOStatement::fetchAll:
Array
(
[0] => stdClass Object
(
[c1] => v1
[c2] => v2
)
)
PDO::setAttribute:
Could not set fetch mode using PDO::setAttribute: Fetch mode must be a bitmask of PDO::FETCH_* constants
Done!
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.