FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=21003&edit=1

  ID: 21003
  Comment by: nacc
  Reported By: nish dot aravamudan@canonical.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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 1, '16 at 11:50p
activeMar 1, '16 at 11:50p
posts1
users1
websitepear.php.net

1 user in discussion

Nacc: 1 post

People

Translate

site design / logo © 2022 Grokbase