Skip to content

Commit 1df8290

Browse files
Merge pull request #328 from gianluigi-icit/master
bump to 4.1.1
2 parents c0f3635 + ef4749a commit 1df8290

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
# Version 4.1.1
4+
* Class autoloader in composer.json
5+
36
## Version 4.1
47
* Ability to connect using SSL, command line only feature
58
* New debug option for printing message errors

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Build Status](https://travis-ci.org/interconnectit/Search-Replace-DB.svg?branch=4.0)](https://travis-ci.org/interconnectit/Search-Replace-DB)
22

3-
# Search Replace DB - v4.1
3+
# Search Replace DB - v4.1.1
44

55
This script was made to aid the process of migrating PHP and MySQL
66
based websites. Works with most common CMSes.

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

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

923923
<p>This developer/sysadmin tool carries out search/replace functions on MySQL DBs and can handle serialised
924924
PHP Arrays and Objects.</p>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "search-replace-db",
3-
"version": "4.0.1",
3+
"version": "4.1.1",
44
"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.",
55
"main": "srdb.cli.php",
66
"directories": {

srdb.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ public static function mb_str_replace( $search, $replace, $subject, &$count = 0
12881288
* @return string
12891289
*/
12901290
public function str_replace( $search, $replace, $string, &$count = 0 ) {
1291-
if ( $this->get( 'regex' ) ) {
1291+
if ( $this->regex ) {
12921292
return preg_replace( $search, $replace, $string, - 1, $count );
12931293
} elseif ( function_exists( 'mb_split' ) ) {
12941294
return self::mb_str_replace( $search, $replace, $string, $count );

0 commit comments

Comments
 (0)