Skip to content

Commit d4e24e7

Browse files
committed
Fix Windows build
sapi\cli\php_cli_server.c(2637): warning C4133: 'function': incompatible types - from 'zend_result (__cdecl *)(void *,php_socket_t,int)' to 'int (__cdecl *)(void *,php_socket_t,int)' Probably a good idea to make GCC complain about these sort of issues too
1 parent 0fad4d1 commit d4e24e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ static int php_cli_server_poller_poll(php_cli_server_poller *poller, struct time
817817
} /* }}} */
818818

819819
// TODO Return value is unused, refactor?
820-
static zend_result php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, int(*callback)(void *, php_socket_t fd, int events)) /* {{{ */
820+
static zend_result php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, zend_result(*callback)(void *, php_socket_t fd, int events)) /* {{{ */
821821
{
822822
zend_result retval = SUCCESS;
823823
#ifdef PHP_WIN32

0 commit comments

Comments
 (0)