Changed to PHP 5.4 comtible.