Yes in post 4 I was saying just try replacing the line in there with the one I noted since you were having an issue with the line in the code using 5.2.17 PHP.
My updated code merely does a PHP check and applies the code to be the new one if php is newer and the old way if its older because both do not work for all versions of PHP.