Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey3000 <Joey3000@users.noreply.github.com>2015-09-21 04:47:31 +0300
committerJoey3000 <Joey3000@users.noreply.github.com>2015-09-21 04:47:31 +0300
commitfb70fa0f3641b440e0572c2c8f7c574aad06c9d8 (patch)
tree8fe3f63e95090da454e210d0a8a4d1e875352de6 /libs/Zend/Validate
parent8c3f662e6be7f4c1fd4f9b62c517f0ca12462e7d (diff)
Add error control operator prefix @ before ini_set()
Added where where missing
Diffstat (limited to 'libs/Zend/Validate')
-rw-r--r--libs/Zend/Validate/Hostname.php4
-rw-r--r--libs/Zend/Validate/StringLength.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/Zend/Validate/Hostname.php b/libs/Zend/Validate/Hostname.php
index 3540743db0..e485a5d546 100644
--- a/libs/Zend/Validate/Hostname.php
+++ b/libs/Zend/Validate/Hostname.php
@@ -551,7 +551,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract
if (PHP_VERSION_ID < 50600) {
iconv_set_encoding('internal_encoding', 'UTF-8');
} else {
- ini_set('default_charset', 'UTF-8');
+ @ini_set('default_charset', 'UTF-8');
}
do {
@@ -652,7 +652,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract
if (PHP_VERSION_ID < 50600) {
iconv_set_encoding('internal_encoding', $origenc);
} else {
- ini_set('default_charset', $origenc);
+ @ini_set('default_charset', $origenc);
}
// If the input passes as an Internet domain name, and domain names are allowed, then the hostname
diff --git a/libs/Zend/Validate/StringLength.php b/libs/Zend/Validate/StringLength.php
index 364f665553..ca1946036e 100644
--- a/libs/Zend/Validate/StringLength.php
+++ b/libs/Zend/Validate/StringLength.php
@@ -205,7 +205,7 @@ class Zend_Validate_StringLength extends Zend_Validate_Abstract
if (PHP_VERSION_ID < 50600) {
$result = iconv_set_encoding('internal_encoding', $encoding);
} else {
- $result = ini_set('default_charset', $encoding);
+ $result = @ini_set('default_charset', $encoding);
}
if (!$result) {
require_once 'Zend/Validate/Exception.php';
@@ -215,7 +215,7 @@ class Zend_Validate_StringLength extends Zend_Validate_Abstract
if (PHP_VERSION_ID < 50600) {
iconv_set_encoding('internal_encoding', $orig);
} else {
- ini_set('default_charset', $orig);
+ @ini_set('default_charset', $orig);
}
}