Compatibility issues with PHP5.3