Skip to content

Commit ca219d7

Browse files
committed
Fix 2nd param name of pg_send_execute()
Closes GH-7576
1 parent 6d0d522 commit ca219d7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ext/pgsql/pgsql.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function pg_send_query_params($connection, string $query, array $params): int|bo
464464
function pg_send_prepare($connection, string $statement_name, string $query): int|bool {}
465465

466466
/** @param resource $connection */
467-
function pg_send_execute($connection, string $query, array $params): int|bool {}
467+
function pg_send_execute($connection, string $statement_name, array $params): int|bool {}
468468

469469
/**
470470
* @param resource $connection

ext/pgsql/pgsql_arginfo.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: b996f10e06a18f0995a9614bd05340987beda8ea */
2+
* Stub hash: 72a1beeb327cd6fdb135ed8de8c6fc1372f76303 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_connect, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)
@@ -374,7 +374,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_prepare, 0, 3, MAY_BE_LO
374374
ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
375375
ZEND_END_ARG_INFO()
376376

377-
#define arginfo_pg_send_execute arginfo_pg_send_query_params
377+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_execute, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
378+
ZEND_ARG_INFO(0, connection)
379+
ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
380+
ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
381+
ZEND_END_ARG_INFO()
378382

379383
ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_get_result, 0, 0, 1)
380384
ZEND_ARG_INFO(0, connection)

0 commit comments

Comments
 (0)