Skip to content

Commit 43abfb5

Browse files
committed
Add safeguard for partial processing to not be counted as a success
1 parent 813403e commit 43abfb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Search_Replace_Command.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,12 @@ static function ( $key ) {
585585
continue;
586586
}
587587

588+
// In case a needed re-serialization was unsuccessful, we should not update the value,
589+
// as this implies we hit an exception while processing.
590+
if ( gettype( $value ) !== gettype( $col_value ) ) {
591+
continue;
592+
}
593+
588594
if ( $this->log_handle ) {
589595
$this->log_php_diff( $col, $keys, $table, $old, $new, $replacer->get_log_data() );
590596
$replacer->clear_log_data();

0 commit comments

Comments
 (0)