[php-src] PHP-8.0: Fix pg_get_notify() parameter name

From: Date: Mon, 26 Apr 2021 17:39:37 +0000
Subject: [php-src] PHP-8.0: Fix pg_get_notify() parameter name
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115842@lists.php.net to get a copy of this message
Author: Máté Kocsis (kocsismate) Date: 2021-04-26T19:37:41+02:00 Commit: https://github.com/php/php-src/commit/d1e590fe7227b1bec66925e3bd0a22eb85046ffc Raw diff: https://github.com/php/php-src/commit/d1e590fe7227b1bec66925e3bd0a22eb85046ffc.diff Fix pg_get_notify() parameter name Closes GH-6916 Changed paths: M ext/pgsql/pgsql.stub.php M ext/pgsql/pgsql_arginfo.h Diff: diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php index aff847bbc444..24bf3e72f8b5 100644 --- a/ext/pgsql/pgsql.stub.php +++ b/ext/pgsql/pgsql.stub.php @@ -475,8 +475,8 @@ function pg_get_result($connection) {} /** @param resource $result */ function pg_result_status($result, int $mode = PGSQL_STATUS_LONG): string|int {} -/** @param resource $result */ -function pg_get_notify($result, int $mode = PGSQL_ASSOC): array|false {} +/** @param resource $connection */ +function pg_get_notify($connection, int $mode = PGSQL_ASSOC): array|false {} /** @param resource $connection */ function pg_get_pid($connection): int {} diff --git a/ext/pgsql/pgsql_arginfo.h b/ext/pgsql/pgsql_arginfo.h index 3d9a4f2d5d2b..f94c0077d018 100644 --- a/ext/pgsql/pgsql_arginfo.h +++ b/ext/pgsql/pgsql_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: de1718d3e6e66dfade25462b8461983b914120ed */ + * Stub hash: b996f10e06a18f0995a9614bd05340987beda8ea */ ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_connect, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0) @@ -386,7 +386,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_status, 0, 1, MAY_BE_S ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_get_notify, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE) - ZEND_ARG_INFO(0, result) + ZEND_ARG_INFO(0, connection) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC") ZEND_END_ARG_INFO()

« previous php.cvs (#115842) next »