Back to PHP 5.2.1 compatibility