-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unserialize() warning flood with PHP 8.3+. Fix deprecated warnings. #385
base: master
Are you sure you want to change the base?
Conversation
As of PHP 8.3 unserialize() triggers E_WARNING instead of E_NOTICE causing SRDB to dump thousands of notices to the screen as it tries to unserialized non-serialized strings. It now checks for serialized data before trying to unserialize. Fixed Deprecation warning creating dynamic property: alter_collation. Fixed Deprecation warning when passing null to htmlentities().
Added v4.1.4 for unserialize() and Deprecated warning fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesterday I was using SRDB V4.1.3 running on the latest PHP version and encountered this problem. I have tested @colinfoster solution and it works perfectly!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on PHP 8.3 - everything works well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in wp 8.3.4 Works just fine !
8.3.9 works fine. Noticed the merge and review went unanswered here so people wanting these changes ( thanks to @colinfoster via #385 ) should grab the updates over @ https://github.com/colinfoster/Search-Replace-DB/ |
As of PHP 8.3 unserialize() triggers E_WARNING instead of E_NOTICE causing SRDB to dump thousands of notices (one for every string checked) to the screen as it tries to unserialize non-serialized strings. It now checks for serialized data before trying to unserialize.
Fixed Deprecation warning creating dynamic property: alter_collation.
Fixed Deprecation warning when passing null to htmlentities().