Skip to content

Commit

Permalink
PHP 8.3 | NewFunctions: detect use of pg_send_flush_request()
Browse files Browse the repository at this point in the history
>   Added pg_send_flush_request().

Refs:
* https://github.com/php/php-src/blob/PHP-8.3/UPGRADING#L440
* php/php-src 12644
* php/php-src@6389800

Related to 1589
  • Loading branch information
jrfnl committed Nov 13, 2023
1 parent 8770f4f commit 89a4c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PHPCompatibility/Sniffs/FunctionUse/NewFunctionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -4963,6 +4963,11 @@ class NewFunctionsSniff extends Sniff
'8.3' => true,
'extension' => 'pgsql',
],
'pg_send_flush_request' => [
'8.2' => false,
'8.3' => true,
'extension' => 'pgsql',
],
'posix_sysconf' => [
'8.2' => false,
'8.3' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1054,3 +1054,4 @@ pg_exit_pipeline_mode();
pg_pipeline_sync();
pg_pipeline_status();
socket_atmark();
pg_send_flush_request();
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ public static function dataNewFunction()
['pg_exit_pipeline_mode', '8.2', 1053, '8.3'],
['pg_pipeline_sync', '8.2', 1054, '8.3'],
['pg_pipeline_status', '8.2', 1055, '8.3'],
['pg_send_flush_request', '8.2', 1057, '8.3'],
['socket_atmark', '8.2', 1056, '8.3'],
];
}
Expand Down

0 comments on commit 89a4c88

Please sign in to comment.