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

Fixed error_handler which now terminates script with exit() and exitstatus #272

Closed ddarbyson closed 4 years ago

ddarbyson commented 5 years ago

This ensures operations are not reported as successful when there are Errors or Warnings (typically caused by changes in PHP core which cause breaking changes in SRDB). By adding exit() to the error_handler callback, wrapper scripts which call srdb.cli.php from the command line will properly detect when an error occurs to stop operations.

gianluigi-icit commented 4 years ago

thanks, your PR made me think of a better error handler. I wrote something much better!

ddarbyson commented 4 years ago

thanks @gianluigi-icit !