mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix ZPP of pg_lo_export()
Closes GH-11132
This commit is contained in:
parent
3a76f795f8
commit
f0149c5c0b
3
NEWS
3
NEWS
@ -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:
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user