Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 21dda46

Browse files
committed
Merge branch 'feature/59' into develop
Close #59
2 parents 5ee9e8c + 3ac9341 commit 21dda46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Compress/Bz2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function decompress($content)
135135
$archive = $this->getArchive();
136136

137137
//check if there are null byte characters before doing a file_exists check
138-
if (! strstr($content, "\0") && file_exists($content)) {
138+
if (false === strpos($content, "\0") && file_exists($content)) {
139139
$archive = $content;
140140
}
141141

src/Compress/Gz.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function decompress($content)
167167
$mode = $this->getMode();
168168

169169
//check if there are null byte characters before doing a file_exists check
170-
if (! strstr($content, "\0") && file_exists($content)) {
170+
if (false === strpos($content, "\0") && file_exists($content)) {
171171
$archive = $content;
172172
}
173173

src/PregReplace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function validatePattern($pattern)
154154
return true;
155155
}
156156

157-
if (false !== strstr($matches['modifier'], 'e')) {
157+
if (false !== strpos($matches['modifier'], 'e')) {
158158
throw new Exception\InvalidArgumentException(sprintf(
159159
'Pattern for a PregReplace filter may not contain the "e" pattern modifier; received "%s"',
160160
$pattern

0 commit comments

Comments
 (0)