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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 5 + 8 = ?

 
 [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.