From 6145cac1af8fbdf355de8e6e59b5ef2c23ac167a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 9 Sep 2020 17:14:14 +0200 Subject: Fix default value --- ext/pgsql/pgsql.stub.php | 2 +- ext/pgsql/pgsql_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/pgsql') diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php index 624587d8da..e5b9d5a607 100644 --- a/ext/pgsql/pgsql.stub.php +++ b/ext/pgsql/pgsql.stub.php @@ -462,7 +462,7 @@ function pg_send_execute($connection, string $query, array $params): int|bool {} function pg_get_result($connection) {} /** @param resource $result */ -function pg_result_status($result, int $result_type = PGSQL_RESULT_LONG): string|int|false {} +function pg_result_status($result, int $result_type = PGSQL_STATUS_LONG): string|int|false {} /** @param resource $result */ function pg_get_notify($result, int $result_type = PGSQL_ASSOC): array|false {} diff --git a/ext/pgsql/pgsql_arginfo.h b/ext/pgsql/pgsql_arginfo.h index 5c91b162fa..d5b42d48ba 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: 19b18db70bba298e3111913b1b94f95163ac86db */ + * Stub hash: 9364c37bf47b6aaa5c3d2e67a09d82e5b04c15ff */ ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_connect, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0) @@ -382,7 +382,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_status, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_INFO(0, result) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, result_type, IS_LONG, 0, "PGSQL_RESULT_LONG") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, result_type, IS_LONG, 0, "PGSQL_STATUS_LONG") ZEND_END_ARG_INFO() #define arginfo_pg_get_notify arginfo_pg_fetch_all -- cgit v1.2.1