# How bad is having Deprecated code

**URL:** <https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946>\
**Category:** Management and Administration\
**Created:** [August 29, 2012, 9:13pm UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946 "2012-08-29T21:13:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 29, 2012, 9:13pm UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/1 "2012-08-29T21:13:17Z")

</div>

**[octort](https://sourceforge.net/u/octort/)** wrote on [Wednesday, August 29, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#0897):

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!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [August 29, 2012, 10:01pm UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/2 "2012-08-29T22:01:55Z")

</div>

**[tmccormi](https://sourceforge.net/u/tmccormi/)** wrote on [Wednesday, August 29, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#0058):

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

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

-Tony

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 1, 2012, 12:42am UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/3 "2012-09-01T00:42:55Z")

</div>

**[octort](https://sourceforge.net/u/octort/)** wrote on [Saturday, September 01, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#9e2a):

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 20, 2012, 1:18am UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/4 "2012-09-20T01:18:23Z")

</div>

**[octort](https://sourceforge.net/u/octort/)** wrote on [Thursday, September 20, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#e9ba):

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!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 21, 2012, 9:04am UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/5 "2012-09-21T09:04:21Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Friday, September 21, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#0fdd):

Is it OpenEMR 4.1.0 or 4.1.1?  
-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 27, 2012, 9:09pm UTC](https://community.open-emr.org/t/how-bad-is-having-deprecated-code/946/6 "2012-09-27T21:09:24Z")

</div>

**[octort](https://sourceforge.net/u/octort/)** wrote on [Thursday, September 27, 2012](https://sourceforge.net/p/openemr/discussion/202505/thread/637dbf3c/#05c9):

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!
