Skip to content

Commit dbf54e1

Browse files
committedNov 16, 2022
Use zend_result return type instead of innacurate ones
1 parent 726d595 commit dbf54e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎ext/standard/filestat.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) /* {{{ */
104104
}
105105
/* }}} */
106106

107-
static int php_disk_total_space(char *path, double *space) /* {{{ */
107+
static zend_result php_disk_total_space(char *path, double *space) /* {{{ */
108108
#if defined(WINDOWS) /* {{{ */
109109
{
110110
ULARGE_INTEGER FreeBytesAvailableToCaller;
@@ -189,7 +189,7 @@ PHP_FUNCTION(disk_total_space)
189189
}
190190
/* }}} */
191191

192-
static int php_disk_free_space(char *path, double *space) /* {{{ */
192+
static zend_result php_disk_free_space(char *path, double *space) /* {{{ */
193193
#if defined(WINDOWS) /* {{{ */
194194
{
195195
ULARGE_INTEGER FreeBytesAvailableToCaller;
@@ -272,7 +272,7 @@ PHP_FUNCTION(disk_free_space)
272272
/* }}} */
273273

274274
#ifndef PHP_WIN32
275-
PHPAPI int php_get_gid_by_name(const char *name, gid_t *gid)
275+
PHPAPI zend_result php_get_gid_by_name(const char *name, gid_t *gid)
276276
{
277277
#if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX)
278278
struct group gr;
@@ -398,7 +398,7 @@ PHP_FUNCTION(lchgrp)
398398
/* }}} */
399399

400400
#ifndef PHP_WIN32
401-
PHPAPI uid_t php_get_uid_by_name(const char *name, uid_t *uid)
401+
PHPAPI zend_result php_get_uid_by_name(const char *name, uid_t *uid)
402402
{
403403
#if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R)
404404
struct passwd pw;

0 commit comments

Comments
 (0)