?
avatar bertmert
bertmert
16 Feb 2016

Joomla 3.5 Staging (2016-02-15).
PHP Version 7.0.2-nmm1
Web Server Apache
WebServer to PHP Interface fpm-fcgi

How to reproduce:

Go to Global configuration.
Set Error reporting: Maximum.
Set Cache Handler: Cache_Lite
Save configuration.
You'll see:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Cache_Lite has a deprecated constructor in /usr/share/php/Cache/Lite.php on line 29

Also if cache is NOT enabled at all.

avatar bertmert bertmert - open - 16 Feb 2016
avatar bertmert bertmert - change - 16 Feb 2016
Title
3.5 beta Cache_Lite Deprecated message
3.5 beta PHP 7, Cache_Lite, Deprecated message
avatar bertmert bertmert - change - 16 Feb 2016
Title
3.5 beta PHP 7, Cache_Lite, Deprecated message
3.5 beta, PHP 7, Cache_Lite, Deprecated message
avatar mbabker
mbabker - comment - 16 Feb 2016

This needs to be reported to the Cache_Lite maintainers. Not a core CMS issue.

Tech details: The global config has a field to choose cache handlers. The field relies on calling the handler's isSupported() method to tell the system whether a handler is supported in the environment. JCacheStorageCachelite::isSupported() will load the Cache_Lite class into memory and that will trigger the deprecation message.

Solution: Before PHP 8 (presumably when PHP will drop support for PHP 4 style constructors), the Cache_Lite maintainers need to refactor their class to use PHP 5 style constructors.

avatar brianteeman
brianteeman - comment - 16 Feb 2016

@mbabker nd the correct link for that is?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9136.

avatar mbabker
mbabker - comment - 16 Feb 2016

https://pear.php.net/package/Cache_Lite/

But given they support PHP 4 still, they can't make the needed change until dropping support for that.

avatar brianteeman
brianteeman - comment - 16 Feb 2016

Thanks @mbabker - closing here as it is not a Joomla issue

avatar brianteeman brianteeman - change - 16 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-16 18:14:13
Closed_By brianteeman
avatar brianteeman brianteeman - close - 16 Feb 2016
avatar brianteeman brianteeman - close - 16 Feb 2016
avatar brianteeman brianteeman - close - 16 Feb 2016
avatar bertmert
bertmert - comment - 17 Feb 2016

Thank you.
Looks like this is a known issue
https://pear.php.net/bugs/bug.php?id=21003

avatar brianteeman brianteeman - change - 8 Mar 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment