sparc / phpWhois.org

Original phpWhois soruces
http://www.phpwhois.org
GNU General Public License v2.0
95 stars 43 forks source link

Constructors name change required. #1

Closed dobaniashish closed 6 years ago

dobaniashish commented 6 years ago

Hello,

I am getting the following error:

Methods with the same name as their class will not be constructors in a future version of PHP; classname has a deprecated constructor

Caused because of deprecation of PHP 4 style constructors.

More Information:

PHP 4 style constructors (methods that have the same name as the class they are defined in) are deprecated, and will be removed in the future. PHP 7 will emit E_DEPRECATED if a PHP 4 constructor is the only constructor defined within a class. Classes that implement a __construct() method are unaffected. From: http://php.net/manual/en/migration70.deprecated.php

PHP Version: 7.0.22

sparc commented 6 years ago

Please post the full error, including file name and line number

dobaniashish commented 6 years ago

There are multiple files that require this change.

In total there were 3 Error for Constructors name change required and 1 error for "Illegal string offset 'handler'".

Here's the full error code: https://pastebin.com/8mQu6yAL

Screenshot: screen shot 2018-05-17 at 16 51 24

Html Code for error: https://pastebin.com/C8D3S2dT

Tell me if you require more information.

sparc commented 6 years ago

Fixed