Works like a charm, thanks 🙂
Also got this error for a wordpress installation running on windows.
I’ve fixed this by adding the following function:
http://stackoverflow.com/a/14568699/956677
To:
wp-content/plugins/wordfence/wordfence.php
A much nicer solution would be to upgrade PHP to 5.3+ but that is not possible for me at the moment.
Hope this helps someone!