Skip to content

Commit f0149c5

Browse files
committed
Fix ZPP of pg_lo_export()
Closes GH-11132
1 parent 3a76f79 commit f0149c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ PHP NEWS
55
- Opcache:
66
. Fixed bug GH-11134 (Incorrect match default branch optimization). (ilutov)
77

8+
- PGSQL:
9+
. Fixed parameter parsing of pg_lo_export(). (kocsismate)
10+
811
11 May 2023, PHP 8.1.19
912

1013
- Core:

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ PHP_FUNCTION(pg_lo_export)
27602760

27612761
/* allow string to handle large OID value correctly */
27622762
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(),
2763-
"rlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
2763+
"OlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
27642764
if (oid_long <= (zend_long)InvalidOid) {
27652765
zend_value_error("Invalid OID value passed");
27662766
RETURN_THROWS();

0 commit comments

Comments
 (0)