Fix constant issue on PHP 5.2