Skip to content

Commit a2d90aa

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Fix ZPP of pg_lo_export()
2 parents 368dd81 + f0149c5 commit a2d90aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
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.2.6
912

1013
- Core:

ext/pgsql/pgsql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ PHP_FUNCTION(pg_lo_export)
26602660

26612661
/* allow string to handle large OID value correctly */
26622662
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(),
2663-
"rlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
2663+
"OlP", &pgsql_link, pgsql_link_ce, &oid_long, &file_out) == SUCCESS) {
26642664
if (oid_long <= (zend_long)InvalidOid) {
26652665
zend_value_error("Invalid OID value passed");
26662666
RETURN_THROWS();

0 commit comments

Comments
 (0)