Skip to content

Commit 9a14c25

Browse files
committed
ext/standard/basic_functions.c: return bool instead of int for connection_aborted()
1 parent b6cc544 commit 9a14c25

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ PHP_FUNCTION(connection_aborted)
20882088
{
20892089
ZEND_PARSE_PARAMETERS_NONE();
20902090

2091-
RETURN_LONG(PG(connection_status) & PHP_CONNECTION_ABORTED);
2091+
RETURN_BOOL(PG(connection_status) & PHP_CONNECTION_ABORTED);
20922092
}
20932093
/* }}} */
20942094

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ function get_include_path(): string|false {}
20162016
/** @refcount 1 */
20172017
function print_r(mixed $value, bool $return = false): string|true {}
20182018

2019-
function connection_aborted(): int {}
2019+
function connection_aborted(): bool {}
20202020

20212021
function connection_status(): int {}
20222022

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
--TEST--
2-
int connection_aborted ( void );
2+
Basic test for connection_aborted()
33
--CREDITS--
44
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
55
--FILE--
66
<?php
77
var_dump(connection_aborted());
88
?>
99
--EXPECT--
10-
int(0)
10+
bool(false)

0 commit comments

Comments
 (0)