From dbf54e1a8b454479703186c8ec09794484b74ad5 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 9 Nov 2022 16:32:42 +0000 Subject: [PATCH] Use zend_result return type instead of innacurate ones --- ext/standard/filestat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 3e9fcbc7ebc..a55f7b6fb8c 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -104,7 +104,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) /* {{{ */ } /* }}} */ -static int php_disk_total_space(char *path, double *space) /* {{{ */ +static zend_result php_disk_total_space(char *path, double *space) /* {{{ */ #if defined(WINDOWS) /* {{{ */ { ULARGE_INTEGER FreeBytesAvailableToCaller; @@ -189,7 +189,7 @@ PHP_FUNCTION(disk_total_space) } /* }}} */ -static int php_disk_free_space(char *path, double *space) /* {{{ */ +static zend_result php_disk_free_space(char *path, double *space) /* {{{ */ #if defined(WINDOWS) /* {{{ */ { ULARGE_INTEGER FreeBytesAvailableToCaller; @@ -272,7 +272,7 @@ PHP_FUNCTION(disk_free_space) /* }}} */ #ifndef PHP_WIN32 -PHPAPI int php_get_gid_by_name(const char *name, gid_t *gid) +PHPAPI zend_result php_get_gid_by_name(const char *name, gid_t *gid) { #if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX) struct group gr; @@ -398,7 +398,7 @@ PHP_FUNCTION(lchgrp) /* }}} */ #ifndef PHP_WIN32 -PHPAPI uid_t php_get_uid_by_name(const char *name, uid_t *uid) +PHPAPI zend_result php_get_uid_by_name(const char *name, uid_t *uid) { #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R) struct passwd pw;