From 7fcdf1cfa20258609e2e68b10e373f822b8111df Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Thu, 3 Apr 2025 19:56:22 +0100 Subject: [PATCH] ext/ftp: Use zend_result type instead of int type --- ext/ftp/ftp.c | 2 +- ext/ftp/ftp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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