Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

colinfoster
Copy link

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().

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.
Copy link

@mikecollet mikecollet left a 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!

Copy link

@Slamik Slamik left a 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!

Copy link

@BackuPs BackuPs left a 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 !

@windhamdavid
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants