joomla-framework / database

Joomla Framework Database Package
GNU General Public License v2.0
28 stars 35 forks source link

php 8.2 - dynamic property deperecation #273

Closed alikon closed 1 year ago

alikon commented 1 year ago

Deprecated: Creation of dynamic property Joomla\Database\Mysql\MysqlDriver::$charset is deprecated in /shared/httpd/dev4/joomla-cms/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php on line 128

Pull Request for Issue #

Summary of Changes

Testing Instructions

Documentation Changes Required

alikon commented 1 year ago

@nibra can you check this one

HLeithner commented 1 year ago

the variable has to be public since it's now public to, it can be deprecated and changed to protected in the next major version. beside that this variable is never used (at least I didn't found a usage). show it could be removed completely in next release?

nibra commented 1 year ago

Thank you!

HLeithner commented 1 year ago

and whats your plan for this useless variable?

richard67 commented 9 months ago

This fix is included in the 3.0.0 release, but not in the 2.1.1 because that was made in 2022, long before this PR here (and possibly others) were merged into 2.0-dev. So in Joomla 4 we get the deprecated warning when using the PDO MySQL driver on PHP 8.2, and this then results in errors when error reporting is set to maximum.

So it will need a new release 2.1.2 from the 2.0-dev branch first if we want to fix the problem with Joomla 4.4.1. @Hackwar do you think you can do that? It's not urgent, can be done after the 4.4.0 stable.

For removing the unused variable as suggested by @HLeithner above it's too late now, also for the 3.x-dev branch as we already have a 3.0.0 release (where this PR is included).

alikon commented 4 months ago

i'm still bitten by this

It's not urgent, can be done after the 4.4.0 stable.

we have 4.4.3 now

richard67 commented 4 months ago

i'm still bitten by this

It's not urgent, can be done after the 4.4.0 stable.

we have 4.4.3 now

@alikon Not my fault.

@Hackwar Could you make a 2.1.2 release? Or do you know who can?

alikon commented 4 months ago

@richard67 it's not about fault, it's about how we can try to fix it