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

Bug #17229 New object by reference deprecation warning
Submitted: 2010-03-16 09:58 UTC
From: splondike Assigned: doconnor
Status: Closed Package: Image_Transform (version SVN)
PHP Version: 5.3.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


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 : 33 - 1 = ?

 
 [2010-03-16 09:58 UTC] splondike (Stefan Schneider-Kennedy)
Description: ------------ Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/pear/Image/Transform.php on line 255 Test script: --------------- <?php error_reporting(E_ALL); ini_set("display_errors", "1"); include 'Image/Transform.php';

Comments

 [2010-03-16 10:00 UTC] splondike (Stefan Schneider-Kennedy)
 [2010-03-16 11:07 UTC] doconnor (Daniel O'Connor)
if ($error =& $obj->isError()) { will also do it This patch *should* be safe, but bear in mind this may have negative effects for PHP 4 users (which is unfortunately a requiremetn at the moment).
 [2010-03-16 11:08 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: dufuz
0.9.3 and alpha still? BC breaks for all!
 [2010-05-07 07:55 UTC] dufuz (Helgi Þormar Þorbjörnsson)
I do not unfortunately have any intentions of doing this as the package has no test suite and there for the time to test if things would break in PHP 4 or similar are not worth the effort of killing Deprecated messages. Nor do I have time to do a PHP 5 rewrite :)
 [2011-06-22 06:20 UTC] doconnor (Daniel O'Connor)
Are you happy if I just forge ahead and create an Image_Transform2 ?
 [2012-01-24 17:58 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.