#7517·dbal

spl_object_hash() is deprecated in PHP 8.6

Author: mbeccatiCreated Sep 24, 2026Updated Sep 24, 2026

Bug Report

Q A
Version 3.10.x

Summary

DBAL 3.10.x sill uses spl_object_hash(), which is deprecated in PHP 8.6

Current behavior

$PHP -d memory_limit=1G vendor/bin/phpunit --log-junit junit-3.10.x-PHP-8.6-sqlite.xml
PHPUnit 9.6.36 by Sebastian Bergmann and contributors.

...
Deprecated: Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead in /home/runner/work/php-latest-builds/php-latest-builds/src/Exception.php on line 131
Deprecated: Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead in /home/runner/work/php-latest-builds/php-latest-builds/src/Exception.php on line 138
Deprecated: Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead in /home/runner/work/php-latest-builds/php-latest-builds/src/Exception.php on line 138
...

Time: 00:02.246, Memory: 90.00 MB

Expected behavior

No deprecation error while running the test suite

How to reproduce

Just running the test suite.