ext/ftp: Use zend_result type instead of int type

This commit is contained in:
Gina Peter Banyard 2025-04-03 19:56:22 +01:00
parent 169573bcb5
commit 7fcdf1cfa2
2 changed files with 2 additions and 2 deletions

View file

@ -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); 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; zval zstr;
const char *end = input + strlen(input); const char *end = input + strlen(input);

View file

@ -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 /* populates a hashtable with the facts contained in one line of
* an MLSD response. * 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 /* returns a NULL-terminated array of lines returned by the ftp
* MLSD command for the given path or NULL on error. the return * MLSD command for the given path or NULL on error. the return