This repository has been archived by the owner on Jan 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.1: Bump to v1.1.31 Conflicts: CHANGELOG.md src/Patchwork/Utf8/Bootup.php
- Loading branch information
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright (C) 2013 Nicolas Grekas - [email protected] | ||
* Copyright (C) 2016 Nicolas Grekas - [email protected] | ||
* | ||
* This library is free software; you can redistribute it and/or modify it | ||
* under the terms of the (at your option): | ||
|
@@ -66,7 +66,7 @@ public static function initMbstring() | |
if (!in_array(strtolower(mb_language()), array('uni', 'neutral'))) { | ||
mb_language('uni'); | ||
} | ||
} elseif (!defined('MB_OVERLOAD_MAIL')) { | ||
} elseif (!function_exists('mb_strlen')) { | ||
extension_loaded('iconv') or static::initIconv(); | ||
|
||
require __DIR__.'/Bootup/mbstring.php'; | ||
|
@@ -87,7 +87,7 @@ public static function initIconv() | |
if ('UTF-8' !== strtoupper(iconv_get_encoding('output_encoding'))) { | ||
iconv_set_encoding('output_encoding', 'UTF-8'); | ||
} | ||
} elseif (!defined('ICONV_IMPL')) { | ||
} elseif (!function_exists('iconv')) { | ||
require __DIR__.'/Bootup/iconv.php'; | ||
} | ||
} | ||
|
@@ -113,7 +113,7 @@ public static function initIntl() | |
|
||
define('GRAPHEME_CLUSTER_RX', PCRE_VERSION >= '8.32' ? '\X' : s\Intl::GRAPHEME_CLUSTER_RX); | ||
|
||
if (!extension_loaded('intl')) { | ||
if (!function_exists('grapheme_strlen')) { | ||
extension_loaded('iconv') or static::initIconv(); | ||
extension_loaded('mbstring') or static::initMbstring(); | ||
|
||
|