From 2560dda7c821d365a545a7179968014b56053481 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 19 Jul 2025 16:17:59 +0200 Subject: [PATCH] Fix pg_lo_import definition --- resources/functionMap.php | 4 ++-- resources/functionMap_php81delta.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index ed1a7bb993..9afd1fb716 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -8443,8 +8443,8 @@ 'pg_lo_create' => ['int|false', 'connection='=>'resource', 'large_object_oid='=>''], 'pg_lo_export' => ['bool', 'connection'=>'resource', 'oid'=>'int', 'filename'=>'string'], 'pg_lo_export\'1' => ['bool', 'oid'=>'int', 'pathname'=>'string'], -'pg_lo_import' => ['int|false', 'connection'=>'resource', 'pathname'=>'string', 'oid'=>''], -'pg_lo_import\'1' => ['int', 'pathname'=>'string', 'oid'=>''], +'pg_lo_import' => ['int|string|false', 'connection'=>'resource', 'pathname'=>'string', 'oid'=>''], +'pg_lo_import\'1' => ['int|string', 'pathname'=>'string', 'oid'=>''], 'pg_lo_open' => ['resource|false', 'connection'=>'resource', 'oid'=>'int', 'mode'=>'string'], 'pg_lo_read' => ['string|false', 'large_object'=>'resource', 'len='=>'int'], 'pg_lo_read_all' => ['int', 'large_object'=>'resource'], diff --git a/resources/functionMap_php81delta.php b/resources/functionMap_php81delta.php index 54a3199934..2fca7f239b 100644 --- a/resources/functionMap_php81delta.php +++ b/resources/functionMap_php81delta.php @@ -50,8 +50,8 @@ 'pg_field_prtlen\'1' => ['int', 'result'=>'', 'row'=>'int', 'field_name_or_number'=>'string|int'], 'pg_lo_export' => ['bool', 'connection'=>'resource', 'oid'=>'int', 'filename'=>'string'], 'pg_lo_export\'1' => ['bool', 'oid'=>'int', 'pathname'=>'string'], - 'pg_lo_import' => ['int|false', 'connection'=>'resource', 'pathname'=>'string', 'oid'=>''], - 'pg_lo_import\'1' => ['int', 'pathname'=>'string', 'oid'=>''], + 'pg_lo_import' => ['int|string|false', 'connection'=>'resource', 'pathname'=>'string', 'oid'=>''], + 'pg_lo_import\'1' => ['int|string', 'pathname'=>'string', 'oid'=>''], 'pg_parameter_status' => ['string|false', 'connection'=>'resource', 'param_name'=>'string'], 'pg_parameter_status\'1' => ['string|false', 'param_name'=>'string'], 'pg_prepare' => ['resource|false', 'connection'=>'resource', 'stmtname'=>'string', 'query'=>'string'],