Revert "Use a real function so we are PHP 5.2 compatible"

This reverts commit ff5c1c090f3bbc523f54a98eab92497bd394348f.