this line of code is to create a thumb object, but there are warning in php 5.3.x
“Assigning the return value of new by reference is deprecated”
if (FALSE === ($thumb =& new thumbnail_party(500, 500, '#FFFFFF', 'jpg', CACHE_PATH))) {
how to rewrite it without any warnings?
thx
In php 5.3.x you don’t need to specify the
&, found your answer here: http://thinkinglemur.com/index.php/2009/07/assigning-the-return-value-of-new-by-reference-is-deprecated/so you can just use this: