Skip to content

Commit 562f184

Browse files
committed
Replace @deprecated with #[Deprecated]
1 parent 06468f3 commit 562f184

File tree

6 files changed

+40
-16
lines changed

6 files changed

+40
-16
lines changed

ext/mysqli/mysqli.stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,10 @@ public function get_warnings(): mysqli_warning|false {}
851851
public function init() {}
852852

853853
/**
854-
* @deprecated
855854
* @tentative-return-type
856855
* @alias mysqli_kill
857856
*/
857+
#[\Deprecated(since: '8.4', message: 'use KILL CONNECTION/QUERY SQL statement instead')]
858858
public function kill(int $process_id): bool {}
859859

860860
/**
@@ -1506,7 +1506,7 @@ function mysqli_info(mysqli $mysql): ?string {}
15061506
/** @refcount 1 */
15071507
function mysqli_insert_id(mysqli $mysql): int|string {}
15081508

1509-
/** @deprecated */
1509+
#[\Deprecated(since: '8.4', message: 'use KILL CONNECTION/QUERY SQL statement instead')]
15101510
function mysqli_kill(mysqli $mysql, int $process_id): bool {}
15111511

15121512
function mysqli_more_results(mysqli $mysql): bool {}

ext/mysqli/mysqli_arginfo.h

+25-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/tests/071.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ require_once 'skipifconnectfailure.inc';
4141
--EXPECTF--
4242
bool(true)
4343

44-
Deprecated: Method mysqli::kill() is deprecated in %s
44+
Deprecated: Method mysqli::kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
4545
bool(false)
4646
bool(true)
4747

48-
Deprecated: Method mysqli::kill() is deprecated in %s
48+
Deprecated: Method mysqli::kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
4949
bool(false)
5050
done!

ext/mysqli/tests/mysqli_kill.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ require_once 'skipifconnectfailure.inc';
7373
?>
7474
--EXPECTF--
7575

76-
Deprecated: Function mysqli_kill() is deprecated in %s
76+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
7777
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
7878

79-
Deprecated: Function mysqli_kill() is deprecated in %s
79+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
8080
string(%d) "%s"
8181
bool(false)
8282
object(mysqli)#%d (%d) {
@@ -128,13 +128,13 @@ object(mysqli)#%d (%d) {
128128
int(0)
129129
}
130130

131-
Deprecated: Function mysqli_kill() is deprecated in %s
131+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
132132
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
133133
array(1) {
134134
["id"]=>
135135
string(1) "1"
136136
}
137137

138-
Deprecated: Function mysqli_kill() is deprecated in %s
138+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
139139
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
140140
done!

ext/mysqli/tests/mysqli_report.phpt

+5-5
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Warning: mysqli_multi_query(): (%d/%d): You have an error in your SQL syntax; ch
315315

316316
Warning: mysqli_query(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
317317

318-
Deprecated: Function mysqli_kill() is deprecated in %s
318+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
319319
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
320320

321321
Warning: mysqli_prepare(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
@@ -336,16 +336,16 @@ Warning: mysqli_store_result(): (%s/%d): You have an error in your SQL syntax; c
336336

337337
Warning: mysqli_stmt_attr_set(): (%s/%d): Not implemented in %s on line %d
338338

339-
Deprecated: Function mysqli_kill() is deprecated in %s
339+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
340340
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
341341

342342
Warning: mysqli_stmt_prepare(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
343343

344-
Deprecated: Function mysqli_kill() is deprecated in %s
344+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
345345

346-
Deprecated: Function mysqli_kill() is deprecated in %s
346+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
347347

348-
Deprecated: Function mysqli_kill() is deprecated in %s
348+
Deprecated: Function mysqli_kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
349349
[013] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
350350
[016] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
351351
done!

ext/spl/spl_fixedarray_arginfo.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)