diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 0b63822211f..ffe955766bc 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -651,7 +651,7 @@ char** ftp_mlsd(ftpbuf_t *ftp, const char *path, const size_t path_len) return ftp_genlist(ftp, "MLSD", sizeof("MLSD")-1, path, path_len); } -int ftp_mlsd_parse_line(HashTable *ht, const char *input) +zend_result ftp_mlsd_parse_line(HashTable *ht, const char *input) { zval zstr; const char *end = input + strlen(input); diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h index 8f25a5089be..0e73ee30850 100644 --- a/ext/ftp/ftp.h +++ b/ext/ftp/ftp.h @@ -163,7 +163,7 @@ char** ftp_list(ftpbuf_t *ftp, const char *path, const size_t path_len, int recu /* populates a hashtable with the facts contained in one line of * an MLSD response. */ -int ftp_mlsd_parse_line(HashTable *ht, const char *input); +zend_result ftp_mlsd_parse_line(HashTable *ht, const char *input); /* returns a NULL-terminated array of lines returned by the ftp * MLSD command for the given path or NULL on error. the return