Bugfix for PHP 5.1.15