Can't seem to turn off deprecated errors in php

admin

Administrator
Staff member
Im on a development server using a version of php that doesn't support
Code:
mysql_connect()
our production server does. I have tried:
Code:
error_reporting = E_ALL ^ E_DEPRECATED
but it doesn't work. After restarting Apache I still the deprecated error message.

I have access to the ini file I should not need php functions to change the error reporting. this is also for wordpress.