How bad is having Deprecated code

octort wrote on Wednesday, August 29, 2012:

I am getting a lot messages in the error_log files showing DEPRECATED, how bad it can be?

./usr/local/cpanel/logs/error_log
./usr/local/apache/logs/error_log
./home/clinic/public_html/oemr_test/library/ajax/error_log
./home/clinic/public_html/oemr_test/error_log
./home/clinic/public_html/oemr_test/fill-pdf/error_log
./home/clinic/public_html/oemr_test/interface/patient_file/encounter/error_log
./home/clinic/public_html/oemr_test/interface/patient_file/summary/error_log
./home/clinic/public_html/oemr_test/interface/patient_file/history/error_log
./home/clinic/public_html/oemr_test/interface/new/error_log
./home/clinic/public_html/oemr_test/interface/login/error_log
./home/clinic/public_html/oemr_test/interface/fax/error_log
./home/clinic/public_html/oemr_test/interface/error_log
./home/clinic/public_html/oemr_test/interface/forms/physical_exam/error_log
./home/clinic/public_html/oemr_test/interface/main/messages/error_log
./home/clinic/public_html/oemr_test/interface/main/nxpat/error_log
./home/clinic/public_html/oemr_test/interface/main/calendar/error_log
./home/clinic/public_html/oemr_test/interface/main/error_log
./home/clinic/public_html/oemr_test/interface/main/finder/error_log
./home/clinic/public_html/openemr/library/ajax/error_log
./home/clinic/public_html/openemr/custom/error_log
./home/clinic/public_html/openemr/error_log
./home/clinic/public_html/openemr/phpmyadmin/error_log
./home/clinic/public_html/openemr/fill-pdf/error_log
./home/clinic/public_html/openemr/interface/patient_file/encounter/error_log
./home/clinic/public_html/openemr/interface/patient_file/report/error_log
./home/clinic/public_html/openemr/interface/patient_file/error_log
./home/clinic/public_html/openemr/interface/patient_file/summary/error_log
./home/clinic/public_html/openemr/interface/patient_file/history/error_log
./home/clinic/public_html/openemr/interface/patient_file/transaction/error_log
./home/clinic/public_html/openemr/interface/new/error_log
./home/clinic/public_html/openemr/interface/login/error_log
./home/clinic/public_html/openemr/interface/fax/error_log
./home/clinic/public_html/openemr/interface/reports/error_log
./home/clinic/public_html/openemr/interface/error_log
./home/clinic/public_html/openemr/interface/forms/fee_sheet/error_log
./home/clinic/public_html/openemr/interface/forms/newpatient/error_log
./home/clinic/public_html/openemr/interface/forms/vitals/error_log
./home/clinic/public_html/openemr/interface/main/messages/error_log
./home/clinic/public_html/openemr/interface/main/nxpat/error_log
./home/clinic/public_html/openemr/interface/main/calendar/error_log
./home/clinic/public_html/openemr/interface/main/error_log
./home/clinic/public_html/openemr/interface/main/finder/error_log
./home/clinic/public_html/openemr/interface/super/error_log

thanks in advance!

tmccormi wrote on Wednesday, August 29, 2012:

It means at some point, in a future release of php, that command may stop working altogether.  This is what happened in mysql with the TYPE= -vs- ENGINE=  parameter.

for production us, turn off the deprecated code warnings in php.ini to clean up your log.

-Tony

octort wrote on Saturday, September 01, 2012:

Thanks!

octort wrote on Thursday, September 20, 2012:

What is the current PHP version supported for OEMR 4.1? I want to use the one that won’t show Deprecated messages.
Thanks in advance!

bradymiller wrote on Friday, September 21, 2012:

Is it OpenEMR 4.1.0 or 4.1.1?
-brady
OpenEMR

octort wrote on Thursday, September 27, 2012:

OEMR 4.1.0

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

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!