Deprecated warning messages in adodb.inc.php

octort wrote on Thursday, October 04, 2012:

I have OEMR 4.1.0
PHP 5.3.16

WARNING MESSAGE RECEIVED:
  PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/clinic23/public_html/openemr/library/adodb/adodb.inc.php on line 861,867,1175,1940,2960,3486,3526,3545 860

// return simplified empty recordset for inserts/updates/deletes with lower overhead
861 $rs =& new ADORecordSet_empty();
867 $rs =& new $rsclass($this->_queryID,$this->fetchMode); // &new not supported by older PHP versions
1175 $rs2 =& new $arrayClass();
1940 $fld =& new ADOFieldObject();
2960 $this->_obj =& new ADOFetchObj();
3486 $obj =& new $cls();
3526 $perf =& new $class($conn);
3545 $dict =& new $class(); thanks in advance!

I removed the “&” from each line, not sure if that will give me an error later!!!???

Thanks in advance!

kevmccor wrote on Friday, October 05, 2012:

If you are having errors, I believe you should change the error reporting in your php.ini file.  The correct parameter is in the forums somewhere.  Search for “PHP Deprecated” or “reference is deprecated” or similar.  You probably need to get another copy of the file or add the “&” back in.

php.ini 
error_reporting = E_ALL & ~E_NOTICE
(google it)