Compability PHP 5.2