reverted changes of pull request #2163

changes are not compatible with PHP <5.3