resovling php fatal error when less than PHP 5.3