eZ Publish 4 / PHP 5 fixes for the fetch function collection