@@ -244,6 +244,7 @@ function pg_delete($connection, string $table_name, array $conditions, int $flag
244
244
* When connection is NULL, the default connection is used.
245
245
* The default connection is the last connection made by pg_connect
246
246
* or pg_pconnect.
247
+ * As of PHP 8.1.0, using the default connection is deprecated.
247
248
* @throws PgsqlException
248
249
*
249
250
*/
@@ -281,6 +282,7 @@ function pg_end_copy($connection = null): void
281
282
* When connection is unspecified, the default connection is used.
282
283
* The default connection is the last connection made by pg_connect
283
284
* or pg_pconnect.
285
+ * As of PHP 8.1.0, using the default connection is deprecated.
284
286
* @param string $stmtname The name of the prepared statement to execute. if
285
287
* "" is specified, then the unnamed statement is executed. The name must have
286
288
* been previously prepared using pg_prepare,
@@ -393,6 +395,7 @@ function pg_free_result($result): void
393
395
* When connection is NULL, the default connection is used.
394
396
* The default connection is the last connection made by pg_connect
395
397
* or pg_pconnect.
398
+ * As of PHP 8.1.0, using the default connection is deprecated.
396
399
* @return string A string containing the name of the host the
397
400
* connection is to.
398
401
* @throws PgsqlException
@@ -532,6 +535,7 @@ function pg_lo_close($lob): void
532
535
* When connection is unspecified, the default connection is used.
533
536
* The default connection is the last connection made by pg_connect
534
537
* or pg_pconnect.
538
+ * As of PHP 8.1.0, using the default connection is deprecated.
535
539
* @param int $oid The OID of the large object in the database.
536
540
* @param string $pathname The full path and file name of the file in which to write the
537
541
* large object on the client filesystem.
@@ -568,6 +572,7 @@ function pg_lo_export($connection = null, int $oid = null, string $pathname = nu
568
572
* When connection is unspecified, the default connection is used.
569
573
* The default connection is the last connection made by pg_connect
570
574
* or pg_pconnect.
575
+ * As of PHP 8.1.0, using the default connection is deprecated.
571
576
* @param string $pathname The full path and file name of the file on the client
572
577
* filesystem from which to read the large object data.
573
578
* @param $object_id If an object_id is given the function
@@ -609,6 +614,7 @@ function pg_lo_import($connection = null, string $pathname = null, $object_id =
609
614
* When connection is unspecified, the default connection is used.
610
615
* The default connection is the last connection made by pg_connect
611
616
* or pg_pconnect.
617
+ * As of PHP 8.1.0, using the default connection is deprecated.
612
618
* @param int $oid The OID of the large object in the database.
613
619
* @param string $mode Can be either "r" for read-only, "w" for write only or "rw" for read and
614
620
* write.
@@ -709,6 +715,7 @@ function pg_lo_truncate($lob, int $size): void
709
715
* When connection is unspecified, the default connection is used.
710
716
* The default connection is the last connection made by pg_connect
711
717
* or pg_pconnect.
718
+ * As of PHP 8.1.0, using the default connection is deprecated.
712
719
* @param int $oid The OID of the large object in the database.
713
720
* @throws PgsqlException
714
721
*
@@ -806,6 +813,7 @@ function pg_meta_data($connection, string $table_name, bool $extended = false):
806
813
* When connection is unspecified, the default connection is used.
807
814
* The default connection is the last connection made by pg_connect
808
815
* or pg_pconnect.
816
+ * As of PHP 8.1.0, using the default connection is deprecated.
809
817
* @param string $param_name Possible param_name values include server_version,
810
818
* server_encoding, client_encoding,
811
819
* is_superuser, session_authorization,
@@ -896,6 +904,7 @@ function pg_pconnect(string $connection_string, int $flags = 0)
896
904
* When connection is NULL, the default connection is used.
897
905
* The default connection is the last connection made by pg_connect
898
906
* or pg_pconnect.
907
+ * As of PHP 8.1.0, using the default connection is deprecated.
899
908
* @throws PgsqlException
900
909
*
901
910
*/
@@ -938,6 +947,7 @@ function pg_ping($connection = null): void
938
947
* When connection is unspecified, the default connection is used.
939
948
* The default connection is the last connection made by pg_connect
940
949
* or pg_pconnect.
950
+ * As of PHP 8.1.0, using the default connection is deprecated.
941
951
* @param string $stmtname The name to give the prepared statement. Must be unique per-connection. If
942
952
* "" is specified, then an unnamed statement is created, overwriting any
943
953
* previously defined unnamed statement.
@@ -984,6 +994,7 @@ function pg_prepare($connection = null, string $stmtname = null, string $query =
984
994
* When connection is unspecified, the default connection is used.
985
995
* The default connection is the last connection made by pg_connect
986
996
* or pg_pconnect.
997
+ * As of PHP 8.1.0, using the default connection is deprecated.
987
998
* @param string $data A line of text to be sent directly to the PostgreSQL backend. A NULL
988
999
* terminator is added automatically.
989
1000
* @throws PgsqlException
@@ -1034,6 +1045,7 @@ function pg_put_line($connection = null, string $data = null): void
1034
1045
* When connection is unspecified, the default connection is used.
1035
1046
* The default connection is the last connection made by pg_connect
1036
1047
* or pg_pconnect.
1048
+ * As of PHP 8.1.0, using the default connection is deprecated.
1037
1049
* @param string $query The parameterized SQL statement. Must contain only a single statement.
1038
1050
* (multiple statements separated by semi-colons are not allowed.) If any parameters
1039
1051
* are used, they are referred to as $1, $2, etc.
@@ -1096,6 +1108,7 @@ function pg_query_params($connection = null, string $query = null, array $params
1096
1108
* When connection is unspecified, the default connection is used.
1097
1109
* The default connection is the last connection made by pg_connect
1098
1110
* or pg_pconnect.
1111
+ * As of PHP 8.1.0, using the default connection is deprecated.
1099
1112
* @param string $query The SQL statement or statements to be executed. When multiple statements are passed to the function,
1100
1113
* they are automatically executed as one transaction, unless there are explicit BEGIN/COMMIT commands
1101
1114
* included in the query string. However, using multiple transactions in one function call is not recommended.
@@ -1281,6 +1294,7 @@ function pg_socket($connection)
1281
1294
* When connection is NULL, the default connection is used.
1282
1295
* The default connection is the last connection made by pg_connect
1283
1296
* or pg_pconnect.
1297
+ * As of PHP 8.1.0, using the default connection is deprecated.
1284
1298
* @throws PgsqlException
1285
1299
*
1286
1300
*/
0 commit comments