Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit c9d607b

Browse files
author
Yuri Kovsher
committed
MAGETWO-44655: [HHVM] Error on installation via console "Given encoding not supported on this OS!"
1 parent dbdf178 commit c9d607b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Validate/StringLength.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function setEncoding($encoding = null)
207207
} else {
208208
$result = ini_set('default_charset', $encoding);
209209
}
210-
if (!$result) {
210+
if ($result === false) {
211211
#require_once 'Zend/Validate/Exception.php';
212212
throw new Zend_Validate_Exception('Given encoding not supported on this OS!');
213213
}

0 commit comments

Comments
 (0)