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

Bug #21187 Occurred error "Assigning the return value of new by reference is deprecated"
Submitted: 2017-02-27 12:03 UTC
From: takoba Assigned:
Status: Open Package: Date_Holidays_Japan (version 0.1.3)
PHP Version: 5.5.38 OS: Ubuntu (Amazon Linux AMI)
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 : 46 + 1 = ?

 
 [2017-02-27 12:03 UTC] takoba (Tak Obara)
Description: ------------ In Date/Holidays/Driver/Japan.php, Line 328. ``` $date =& new Date($this->_year . '-05-04'); ``` cf.) http://php.net/manual/en/migration53.deprecated.php Expected result: ---------------- In this case, I think you should assign `new Date()` to `$date` simply. ``` $date = new Date($this->_year . '-05-04'); ```

Comments