Adjust library to php5.3, set more restrict error reporting in tests