[PEAR-BUG] Bug #21169 [Com]: Deprecated Warning
| Newsgroups | php.pear.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://pear.php.net/bugs/bug.php?id=21169&edit=1 ID: 21169 Comment by: [email protected] Reported By: james at elstone dot net Summary: Deprecated Warning Status: Open Type: Bug Package: Services_JSON Operating System: FreeBSD Package Version: 1.0.3 PHP Version: HEAD SVN-2017-01-21 Roadmap Versions: New Comment: Also: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor in /usr/local/share/pear/Services/JSON.php on line 119 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /usr/local/share/pear/Services/JSON.php on line 924 Previous Comments: ------------------------------------------------------------------------ [2017-01-21 17:32:50] jameselstone Description: ------------ Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /usr/local/share/pear/Services/JSON.php on line 910 Test script: --------------- Install PHP7.0 and include Service/JSON.php. Expected result: ---------------- Warning not shown ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=21169&edit=1