[PEAR-BUG] Bug #21003 [Com]: PHP7: Cache_Lite has a deprecated constructor
[email protected] ("nacc") Tue, 1 Mar 2016 18:51:18 -0500 (EST)
| Newsgroups | php.pear.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at http://pear.php.net/bugs/bug.php?id=21003&edit=1 ID: 21003 Comment by: nacc Reported By: nish dot aravamudan at canonical dot com Summary: PHP7: Cache_Lite has a deprecated constructor Status: Open Type: Bug Package: Cache_Lite Operating System: Windows Package Version: 1.7.16 PHP Version: HEAD SVN-2015-12-16 New Comment: Sent a pull request at github: https://github.com/pear/Cache_Lite/pull/5. Previous Comments: ------------------------------------------------------------------------ [2015-12-16 14:45:56] okkie Description: ------------ PHP 7 reports this warning: 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 C:\php\pear\Cache\Lite.php on line 29 Test script: --------------- Incluse Cachelite in a php file: require_once 'Cache/Lite.php'; Open file in browser. Expected result: ---------------- No warning. Actual result: -------------- A warning is displayed: 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 C:\php\pear\Cache\Lite.php on line 29 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=21003&edit=1