이후 버전의 PHP에서는 class 에 속한 method(함수) 이름을 class 이름과 동일하게 만들 수 없습니다.
This commit is contained in:
@ -73,7 +73,9 @@ if (!class_exists('nanoSha2'))
|
|||||||
var $platform;
|
var $platform;
|
||||||
|
|
||||||
// Php 4 - 6 compatable constructor
|
// Php 4 - 6 compatable constructor
|
||||||
function nanoSha2($toUpper = false) {
|
// PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
|
||||||
|
// function nanoSha2($toUpper = false) {
|
||||||
|
function __construct($toUpper = false) {
|
||||||
// Determine if the caller wants upper case or not.
|
// Determine if the caller wants upper case or not.
|
||||||
$this->toUpper = is_bool($toUpper)
|
$this->toUpper = is_bool($toUpper)
|
||||||
? $toUpper
|
? $toUpper
|
||||||
|
|||||||
Reference in New Issue
Block a user