Bug #17729 patch, part 2: limited define_syslog_variables calls to php versions earlier than 5.3.0

So glad this made it to GitHub! Now I can easily contribute what I've been wanting to. This is just the start :)