interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
3.99k stars 850 forks source link

Fix unserialize() warning flood with PHP 8.3+. Fix deprecated warnings. #385

Open colinfoster opened 6 months ago

colinfoster commented 6 months ago

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

windhamdavid commented 1 month ago

8.3.9 works fine. Noticed the merge and review went unanswered here so people wanting these changes ( thanks to @colinfoster via https://github.com/interconnectit/Search-Replace-DB/pull/385 ) should grab the updates over @ https://github.com/colinfoster/Search-Replace-DB/