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 851 forks source link

Fix for #241. #251

Closed chrisbarnett1 closed 4 years ago

chrisbarnett1 commented 5 years ago

As of PHP 7.2 is_object( $data ) will return true rather than false if the object is a __PHP_Incomplete_Class.

Therefore I've added an extra check for __PHP_Incomplete_Class where is_object is used.

chrisbarnett1 commented 5 years ago

Also see: http://php.net/manual/en/function.is-object.php#refsect1-function.is-object-changelog

jacobischwartz commented 5 years ago

I did still see some "__PHP_Incomplete_Class" messages while SRDB was working through wp_options, but this change fixed SRDB for me. Thanks @chrisbarnett1 and I hope that this PR gets accepted!

gianluigi-icit commented 4 years ago

Hello, thanks for the pull request, this code has been merged into the new version v4!