Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
* PHP-8.4:
  Fix some odbc_*() parameter types
  • Loading branch information
kocsismate committed Nov 27, 2024
2 parents 7b9b832 + 3c70f5e commit 8addc3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions ext/odbc/odbc.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,18 +351,15 @@ function odbc_exec(Odbc\Connection $odbc, string $query): Odbc\Result|false {}
function odbc_do(Odbc\Connection $odbc, string $query): Odbc\Result|false {}

#ifdef PHP_ODBC_HAVE_FETCH_HASH
/** @param resource $statement */
function odbc_fetch_object($statement, ?int $row = null): stdClass|false {}
function odbc_fetch_object(Odbc\Result $statement, ?int $row = null): stdClass|false {}

/** @param resource $statement */
function odbc_fetch_array($statement, ?int $row = null): array|false {}
function odbc_fetch_array(Odbc\Result $statement, ?int $row = null): array|false {}
#endif

/**
* @param resource $statement
* @param array $array
*/
function odbc_fetch_into($statement, &$array, ?int $row = null): int|false {}
function odbc_fetch_into(Odbc\Result $statement, &$array, ?int $row = null): int|false {}

function odbc_fetch_row(Odbc\Result $statement, ?int $row = null): bool {}

Expand Down
8 changes: 4 additions & 4 deletions ext/odbc/odbc_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8addc3c

Please sign in to comment.