Skip to content

Commit

Permalink
Fix ZPP of pg_lo_export()
Browse files Browse the repository at this point in the history
Closes GH-11132
  • Loading branch information
kocsismate committed Apr 27, 2023
1 parent 3a76f79 commit f0149c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -5,6 +5,9 @@ PHP NEWS
- Opcache:
. Fixed bug GH-11134 (Incorrect match default branch optimization). (ilutov)

- PGSQL:
. Fixed parameter parsing of pg_lo_export(). (kocsismate)

11 May 2023, PHP 8.1.19

- Core:
Expand Down
2 changes: 1 addition & 1 deletion ext/pgsql/pgsql.c
Expand Up @@ -2760,7 +2760,7 @@ PHP_FUNCTION(pg_lo_export)

/* allow string to handle large OID value correctly */
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(),
"rlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
"OlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
if (oid_long <= (zend_long)InvalidOid) {
zend_value_error("Invalid OID value passed");
RETURN_THROWS();
Expand Down

0 comments on commit f0149c5

Please sign in to comment.