Fallback for php5.2