Skip to content

Commit 01a1050

Browse files
authored
Merge pull request #87 from nikic/comparison-fixes
Comparison fixes
2 parents 2e88e87 + 712d7e4 commit 01a1050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PEAR.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ protected static function _raiseError($object,
542542
count($object->_expected_errors) > 0 &&
543543
count($exp = end($object->_expected_errors))
544544
) {
545-
if ($exp[0] == "*" ||
545+
if ($exp[0] === "*" ||
546546
(is_int(reset($exp)) && in_array($code, $exp)) ||
547547
(is_string(reset($exp)) && in_array($message, $exp))
548548
) {

PEAR/PackageFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function &fromTgzFile($file, $state)
315315
}
316316

317317
if (!is_array($content)) {
318-
if (is_string($file) && strlen($file < 255) &&
318+
if (is_string($file) && strlen($file) < 255 &&
319319
(!file_exists($file) || !@is_file($file))) {
320320
$ret = PEAR::raiseError("could not open file \"$file\"");
321321
return $ret;

0 commit comments

Comments
 (0)