Closed registrobr closed 1 year ago
Pear: Error also seems to be deprecated or about to. From whmcs-coza-epp mailing list:
"110%, thanks Michael.
If we can track it down to that single PEAR_Error() I think that warrants me rewriting the module to use exceptions instead, seems that the PEAR Error() handling is marked as deprecated in alot of places v0v"
Currently not a problem since WHMCS doesn't support PHP 5.5 due to Ioncube restrictions. The new Ioncube loader supports PHP 5.5 but WHMCS, including up to 5.3.8, is encoded using previous Ioncube version that do not support the new loader. It is also said that WHMCS itself uses the same 5.5 deprecated versions, so it might be long before this issue becomes a problem.
Status might be changed from wontfix in the future; issue will remain open with no milestone.
PHP 5.4 already complains about some of the issues: Strict Standards: Non-static method PEAR::isError() should not be called statically in /home/super/public_html/home/modules/registrars/registrobr/Net/EPP/Protocol.php on line 73
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in/home/super/public_html/home/modules/registrars/registrobr/RegistroEPP/RegistroEPP.class.php on line 172
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/super/public_html/home/modules/registrars/registrobr/Net/EPP/Client.php on line 112
Strict Standards: Non-static method PEAR::isError() should not be called statically in /home/super/public_html/home/modules/registrars/registrobr/Net/EPP/Protocol.php on line 73
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/super/public_html/home/modules/registrars/registrobr/Net/EPP/Client.php on line 112
Strict Standards: Non-static method PEAR::isError() should not be called statically in /home/super/public_html/home/modules/registrars/registrobr/Net/EPP/Protocol.php on line 73
Perhaps the changes already made at https://gitlab.centralnic.com/centralnic/php-epp/tree/master/Net/EPP solve the mentioned issues
WHMCS v6 will support PHP 5.5+, so WHMCS v6 interoperability (besides possible registrar module issues yet to be known) might also require moving out of deprecated functions.
WHMCS Version 6.0 supports PHP 5.3.7 or later, including PHP 5.4, 5.5 and 5.6.
WHMCS Version 6.0 requires PHP Database Extension PDO
mysql_* functions that were removed still present in the code
Commit df07b5d replaced all database functions with Capsule calls. New table layout defined.
http://php.net/manual/en/migration55.deprecated.php