From 72c07d57631e440efaba010efee7ca50ccfbf9c6 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Mon, 31 Aug 2026 21:57:53 +0200 Subject: [PATCH 1/2] ext/pgsql, ext/enchant: document the functions added in PHP 8.5 --- .../enchant-dict-remove-from-session.xml | 70 ++++++++++++++ .../enchant/functions/enchant-dict-remove.xml | 71 ++++++++++++++ reference/enchant/versions.xml | 2 + reference/pgsql/functions/pg-close-stmt.xml | 92 +++++++++++++++++++ reference/pgsql/functions/pg-connect.xml | 7 ++ reference/pgsql/functions/pg-service.xml | 75 +++++++++++++++ reference/pgsql/versions.xml | 2 + 7 files changed, 319 insertions(+) create mode 100644 reference/enchant/functions/enchant-dict-remove-from-session.xml create mode 100644 reference/enchant/functions/enchant-dict-remove.xml create mode 100644 reference/pgsql/functions/pg-close-stmt.xml create mode 100644 reference/pgsql/functions/pg-service.xml diff --git a/reference/enchant/functions/enchant-dict-remove-from-session.xml b/reference/enchant/functions/enchant-dict-remove-from-session.xml new file mode 100644 index 000000000000..a728560aa188 --- /dev/null +++ b/reference/enchant/functions/enchant-dict-remove-from-session.xml @@ -0,0 +1,70 @@ + + + + + enchant_dict_remove_from_session + Remove a word from the session dictionary + + + &reftitle.description; + + voidenchant_dict_remove_from_session + EnchantDictionarydictionary + stringword + + + Removes a word that was previously added to the current spell-checking + session via enchant_dict_add_to_session. + + + + + &reftitle.parameters; + + &enchant.param.dictionary; + + word + + + The word to remove from the session. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.seealso; + + enchant_dict_add_to_session + enchant_dict_remove + + + + diff --git a/reference/enchant/functions/enchant-dict-remove.xml b/reference/enchant/functions/enchant-dict-remove.xml new file mode 100644 index 000000000000..6ab4d4729d38 --- /dev/null +++ b/reference/enchant/functions/enchant-dict-remove.xml @@ -0,0 +1,71 @@ + + + + + enchant_dict_remove + Add a word to the exclusion list and remove it from the personal dictionary + + + &reftitle.description; + + voidenchant_dict_remove + EnchantDictionarydictionary + stringword + + + Adds a word to the exclusion list of the given dictionary, preventing it + from being accepted as correctly spelled. If the word was previously added + to the personal dictionary, it is also removed from there. + + + + + &reftitle.parameters; + + &enchant.param.dictionary; + + word + + + The word to exclude. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.seealso; + + enchant_dict_add + enchant_dict_remove_from_session + + + + diff --git a/reference/enchant/versions.xml b/reference/enchant/versions.xml index af58ab77e274..a0f6131fb2fe 100644 --- a/reference/enchant/versions.xml +++ b/reference/enchant/versions.xml @@ -17,6 +17,8 @@ + + diff --git a/reference/pgsql/functions/pg-close-stmt.xml b/reference/pgsql/functions/pg-close-stmt.xml new file mode 100644 index 000000000000..0a5c9479ae1a --- /dev/null +++ b/reference/pgsql/functions/pg-close-stmt.xml @@ -0,0 +1,92 @@ + + + + + pg_close_stmt + Closes a prepared statement + + + + &reftitle.description; + + PgSql\Resultfalsepg_close_stmt + PgSql\Connectionconnection + stringstatement_name + + + Closes a prepared statement on the server, freeing its resources and making + its name available for reuse. It is an alternative to issuing a + DEALLOCATE SQL command, which does not allow the statement + name to be reused afterwards. + + + This function is only available if PHP has been built against libpq 17 or + later. + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection; + + + + statement_name + + + The name of the prepared statement to close. + + + + + + + + &reftitle.returnvalues; + + A PgSql\Result instance on success, or &false; on + failure. + + + + + &reftitle.errors; + + Throws a ValueError if + statement_name is empty or contains any null bytes. + + + + + &reftitle.seealso; + + pg_prepare + pg_execute + + + + + diff --git a/reference/pgsql/functions/pg-connect.xml b/reference/pgsql/functions/pg-connect.xml index e618a6c2f0c7..0f7e30ef824b 100644 --- a/reference/pgsql/functions/pg-connect.xml +++ b/reference/pgsql/functions/pg-connect.xml @@ -104,6 +104,13 @@ + + 8.5.0 + + A ValueError is now thrown if + connection_string contains null bytes. + + 8.1.0 diff --git a/reference/pgsql/functions/pg-service.xml b/reference/pgsql/functions/pg-service.xml new file mode 100644 index 000000000000..6f84565c8627 --- /dev/null +++ b/reference/pgsql/functions/pg-service.xml @@ -0,0 +1,75 @@ + + + + + pg_service + Gets the service name of the connection + + + + &reftitle.description; + + stringpg_service + PgSql\Connectionnullconnection&null; + + + Returns the name of the connection service used to establish the connection, + as defined in the connection service file. + + + This function is only available if PHP has been built against libpq 18 or + later. + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection-with-nullable-default; + + + + + + + &reftitle.returnvalues; + + A string containing the service name of the connection, or an + empty string if no service was used. + + + + + &reftitle.seealso; + + pg_connect + pg_dbname + pg_host + pg_port + + + + + diff --git a/reference/pgsql/versions.xml b/reference/pgsql/versions.xml index 254b0f2c06aa..9b928b6198b8 100644 --- a/reference/pgsql/versions.xml +++ b/reference/pgsql/versions.xml @@ -7,6 +7,7 @@ + @@ -91,6 +92,7 @@ + From 56e7ce29c5b3aef4f2c5f08d454209edbce02229 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Wed, 2 Sep 2026 09:50:36 +0200 Subject: [PATCH 2/2] docs(enchant): add missing seealso links to enchant_dict_remove functions --- reference/enchant/functions/enchant-dict-remove-from-session.xml | 1 + reference/enchant/functions/enchant-dict-remove.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/reference/enchant/functions/enchant-dict-remove-from-session.xml b/reference/enchant/functions/enchant-dict-remove-from-session.xml index a728560aa188..c002da7ddbd1 100644 --- a/reference/enchant/functions/enchant-dict-remove-from-session.xml +++ b/reference/enchant/functions/enchant-dict-remove-from-session.xml @@ -45,6 +45,7 @@ enchant_dict_add_to_session enchant_dict_remove + enchant_dict_is_added_to_session diff --git a/reference/enchant/functions/enchant-dict-remove.xml b/reference/enchant/functions/enchant-dict-remove.xml index 6ab4d4729d38..e31b92dce695 100644 --- a/reference/enchant/functions/enchant-dict-remove.xml +++ b/reference/enchant/functions/enchant-dict-remove.xml @@ -46,6 +46,7 @@ enchant_dict_add enchant_dict_remove_from_session + enchant_dict_is_added