php7-mysql-shim icon indicating copy to clipboard operation
php7-mysql-shim copied to clipboard

Dynamic property $hash deprecated

Open jannes-io opened this issue 3 months ago • 0 comments

Dynamic properties were deprecated since PHP8.2 and will be removed in 9.0. We still rely on this library for some of our legacy code.

Error: PHP Deprecated: Creation of dynamic property mysqli::$hash is deprecated in /var/www/vhosts/scripts/mysql.php on line 90

Cause: https://github.com/dshafik/php7-mysql-shim/blob/master/lib/mysql.php#L90

Is there some other way to store the hash instead of attaching it directly to the connection?

jannes-io avatar Aug 19 '25 15:08 jannes-io