Skip to content

Commit 7e25257

Browse files
committed
Use zend_return type where appropriate
1 parent ab40d75 commit 7e25257

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,6 @@ PHP_FUNCTION(highlight_file)
17671767
{
17681768
char *filename;
17691769
size_t filename_len;
1770-
int ret;
17711770
zend_syntax_highlighter_ini syntax_highlighter_ini_ptr;
17721771
bool i = 0;
17731772

@@ -1787,7 +1786,7 @@ PHP_FUNCTION(highlight_file)
17871786

17881787
php_get_highlight_struct(&syntax_highlighter_ini_ptr);
17891788

1790-
ret = highlight_file(filename, &syntax_highlighter_ini_ptr);
1789+
zend_result ret = highlight_file(filename, &syntax_highlighter_ini_ptr);
17911790

17921791
if (ret == FAILURE) {
17931792
if (i) {

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ const zend_function_entry server_additional_functions[] = {
510510
PHP_FE_END
511511
};
512512

513-
static int sapi_cli_server_startup(sapi_module_struct *sapi_module_to_start) /* {{{ */
513+
static zend_result sapi_cli_server_startup(sapi_module_struct *sapi_module_to_start) /* {{{ */
514514
{
515515
return php_module_startup(sapi_module_to_start, &cli_server_module_entry);
516516
} /* }}} */

0 commit comments

Comments
 (0)