Skip to content

Commit 888f048

Browse files
committed
ext/standard/basic_functions.c: return bool instead of int for connection_aborted()
1 parent 7b572f2 commit 888f048

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ PHP_FUNCTION(connection_aborted)
20952095
{
20962096
ZEND_PARSE_PARAMETERS_NONE();
20972097

2098-
RETURN_LONG(PG(connection_status) & PHP_CONNECTION_ABORTED);
2098+
RETURN_BOOL(PG(connection_status) & PHP_CONNECTION_ABORTED);
20992099
}
21002100
/* }}} */
21012101

ext/standard/basic_functions.stub.php

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

2038-
function connection_aborted(): int {}
2038+
function connection_aborted(): bool {}
20392039

20402040
function connection_status(): int {}
20412041

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.

ext/standard/basic_functions_decl.h

Lines changed: 4 additions & 4 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)