Merge branch 'PHP-8.2'

* PHP-8.2:
  Fixed bug GH-10270 Unable to return CURL_READFUNC_PAUSE in readfunc callback
  Fix GH-10672 (pg_lo_open segfaults in the strict_types mode)
This commit is contained in:
George Peter Banyard 2023-02-24 14:33:47 +00:00
commit 51b70e4414
No known key found for this signature in database
GPG key ID: 3306078E3194AEBD
5 changed files with 92 additions and 1 deletions

View file

@ -2338,7 +2338,7 @@ PHP_FUNCTION(pg_lo_open)
CHECK_PGSQL_LINK(link);
}
else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(),
"Ols", &pgsql_link, pgsql_link_ce, &oid_long, &mode) == SUCCESS) {
"OlS", &pgsql_link, pgsql_link_ce, &oid_long, &mode) == SUCCESS) {
if (oid_long <= (zend_long)InvalidOid) {
zend_value_error("Invalid OID value passed");
RETURN_THROWS();