Fix PHP 5.3 bug (issue #17)