Fixed replacement to deprecated url_feof