This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
forked from mensler/bav
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP 5.6 deprecated the iconv_* methods
- Loading branch information
Showing
6 changed files
with
8 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ nbproject | |
.settings | ||
.buildpath | ||
.project | ||
.idea | ||
vendor | ||
composer.lock |
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,6 +1,7 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
|
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 |
---|---|---|
|
@@ -3,31 +3,11 @@ | |
namespace malkusch\bav; | ||
|
||
/** | ||
* This class provides methods for any encoded strings | ||
* This class provides methods for any encoded strings. | ||
* | ||
* | ||
* Copyright (C) 2006 Markus Malkusch <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* | ||
* | ||
* @package classes | ||
* @subpackage dataBackend | ||
* @author Markus Malkusch <[email protected]> | ||
* @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations | ||
* @copyright Copyright (C) 2006 Markus Malkusch | ||
* @license WTFPL | ||
*/ | ||
abstract class Encoding | ||
{ | ||
|
@@ -87,10 +67,7 @@ public static function isSupported($encoding) | |
*/ | ||
public static function getInstance($encoding) | ||
{ | ||
if (IconvEncoding::isSupported($encoding)) { | ||
return new IconvEncoding($encoding); | ||
|
||
} elseif (MBEncoding::isSupported($encoding)) { | ||
if (MBEncoding::isSupported($encoding)) { | ||
return new MBEncoding($encoding); | ||
|
||
} elseif (ISO8859Encoding::isSupported($encoding)) { | ||
|
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 |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
* @author Markus Malkusch <[email protected]> | ||
* @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations | ||
* @copyright Copyright (C) 2006 Markus Malkusch | ||
* @deprecated 1.0.1 PHP 5.6.0 deprecated the iconv_* methods | ||
*/ | ||
class IconvEncoding extends Encoding | ||
{ | ||
|
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