smalyshev/migrate — pull request #1 by boedah (2011-11-09 12:08:55+00:00)
Title: Assigning the return value of new by reference is deprecated

Hi Stanislav,

currently in the process of migrating some sites to PHP5.3 and found your check script very valuable.

I added a check for those PHP4-style "referenced object creation", which now emit a deprecation warning.
This also seems to happen at compile time, which is not mentioned in the docs.

So a

````PHP
error_reporting(0);
die;
$f =& new Foo;
````

also triggers the deprecation error if it is not excluded in php.ini.

Best regards,
Peter