Skip to content

Commit

Permalink
Merge pull request #328 from gianluigi-icit/master
Browse files Browse the repository at this point in the history
bump to 4.1.1
  • Loading branch information
jack-interconnectit authored Apr 20, 2020
2 parents c0f3635 + ef4749a commit 1df8290
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

# Version 4.1.1
* Class autoloader in composer.json

## Version 4.1
* Ability to connect using SSL, command line only feature
* New debug option for printing message errors
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://travis-ci.org/interconnectit/Search-Replace-DB.svg?branch=4.0)](https://travis-ci.org/interconnectit/Search-Replace-DB)

# Search Replace DB - v4.1
# Search Replace DB - v4.1.1

This script was made to aid the process of migrating PHP and MySQL
based websites. Works with most common CMSes.
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
*
* Safe Search and Replace on Database with Serialized Data v4.1
* Safe Search and Replace on Database with Serialized Data v4.1.1
* Copyright © 2020 Interconnect IT Limited
*
* This script is to solve the problem of doing database search and replace when
Expand Down Expand Up @@ -918,7 +918,7 @@ class="db-required run-script"/>

<h1 class="branding">interconnect/it</h1>

<h2>Safe Search and Replace on Database with Serialized Data v4.1</h2>
<h2>Safe Search and Replace on Database with Serialized Data v4.1.1</h2>

<p>This developer/sysadmin tool carries out search/replace functions on MySQL DBs and can handle serialised
PHP Arrays and Objects.</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search-replace-db",
"version": "4.0.1",
"version": "4.1.1",
"description": "A PHP search replace tool for quickly modifying a string throughout a database. Useful for changing the base URL when migrating a WordPress site from development to production.",
"main": "srdb.cli.php",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion srdb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ public static function mb_str_replace( $search, $replace, $subject, &$count = 0
* @return string
*/
public function str_replace( $search, $replace, $string, &$count = 0 ) {
if ( $this->get( 'regex' ) ) {
if ( $this->regex ) {
return preg_replace( $search, $replace, $string, - 1, $count );
} elseif ( function_exists( 'mb_split' ) ) {
return self::mb_str_replace( $search, $replace, $string, $count );
Expand Down

0 comments on commit 1df8290

Please sign in to comment.