Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #21172 not working on PHP 7.1
Submitted: 2017-01-26 10:21 UTC
From: decaen Assigned:
Status: Open Package: Config
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2017-01-26 10:21 UTC] decaen (Emmanuel Decaen)
Description: ------------ &new is not supported in PHP 7.1 could you please replace it with new. Test script: --------------- diff -u XML.php-orig XML.php --- XML.php-orig 2017-01-25 21:10:34.000000000 +0100 +++ XML.php 2017-01-25 21:10:45.000000000 +0100 @@ -131,7 +131,7 @@ */ function startHandler($xp, $elem, &$attribs) { - $container =& new Config_Container('section', $elem, null, $attribs); + $container = new Config_Container('section', $elem, null, $attribs); $this->containers[] =& $container; return null; } // end func startHandler Expected result: ---------------- no parse error Actual result: -------------- PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/lib/php-7.1/lib/php/Config/Container/XML.php on line 134

Comments

 [2017-02-01 18:33 UTC] ashnazg (Chuck Burgess)
-Package: XML_Util +Package: Config
This report is actually against the Config package, not XML_Util.