define_syslog_variables() was deprecated with PHP 5.3.0 and removed in 5.4.0. Added a version check to resolve this.