Bug #3783 (PHP 5.2 incompability)