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

Bug #19457 Deprecated practice with PHP 5
Submitted: 2012-06-06 03:13 UTC
From: svanner Assigned: mgocobachi
Status: Assigned Package: Event_Dispatcher (version 1.1.0)
PHP Version: 5.3.10 OS: Linux Ubuntu 12.04
Roadmaps: (Not assigned)    
Subscription  


 [2012-06-06 03:13 UTC] svanner (Stéphane Van Nerom)
Description: ------------ Line 249 here under causes a deprecated error message : $notification =& new $this->_notificationClass($object, $nName, $info); I suggest to change the code with something like this: $notification = new $this->_notificationClass($object, $nName, $info); $notification_ref =& $notification; return $this->postNotification($notification_ref, $pending, $bubble); Test script: --------------- None Expected result: ---------------- Error message disapears Actual result: -------------- Deprecated practice message occurs at line 249

Comments

 [2012-06-06 21:26 UTC] mgocobachi (Miguel Gocobachi)
-Assigned To: +Assigned To: mgocobachi
 [2017-08-22 15:38 UTC] neufeind (Stefan Neufeind)
Fails hard on PHP 7.1.x (I expect 7.0.x as well), not just deprecation-warnings anymore. Parse error: syntax error, unexpected 'new' (T_NEW) in ... Works with the patch mentioned here.