1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

291 Commits

Author SHA1 Message Date
KentarouTakeda
5f1a92089f ext/pgsql: Update outdated PostgreSQL version requirements (#5409)
## Summary

The pgsql extension documentation references PostgreSQL versions that have been
outdated for years. The requirements page (`reference/pgsql/setup.xml`) states:

https://www.php.net/manual/en/pgsql.requirements.php

> To use PostgreSQL support, you need PostgreSQL 6.5 or later,
> PostgreSQL 8.0 or later to enable all PostgreSQL module features.

However, the actual minimum libpq versions enforced by php-src are:

| PHP version | Minimum libpq | Commit |
|---|---|---|
| PHP 8.0+ | libpq 9.1 | php/php-src@ce668c0ec6 |
| PHP 8.4+ | libpq 10.0 | php/php-src#14628 |

The "PostgreSQL 6.5" requirement has been incorrect since at least PHP 8.0.0
(released 2020-11-26), which requires libpq 9.1 via `PQlibVersion` check in
`ext/pgsql/config.m4`. As of PHP 8.4, the minimum was further raised to libpq
10.0 via `PQencryptPasswordConn` check in `build/php.m4`.

## Changes

- **setup.xml**: Update requirements to match php-src, following the same
  pattern used by ext/curl and ext/openssl (per-PHP-version listing).
- **14 function pages**: Remove notes referencing PostgreSQL versions 6.3–9.0
  that are no longer relevant given the libpq 10.0 minimum. These include
  version-gated notes for `pg_prepare`, `pg_query_params`, `pg_execute`,
  `pg_escape_string`, `pg_escape_identifier`, `pg_escape_literal`,
  `pg_client_encoding`, `pg_unescape_bytea`, `pg_result_error_field`,
  `pg_parameter_status`, `pg_lo_create`, `pg_version`, `pg_affected_rows`,
  and the general `reference.xml`.
2026-03-10 17:37:21 +00:00
Máté Kocsis
aa120f36c5 Sync parameter type and name changes (#5073)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2026-01-14 22:09:32 +01:00
Vincent Langlet
d0ae617680 Fix pg_lo_import return type (#4785) 2025-07-19 18:13:35 +01:00
Pere Orga
3b2503bdcb pg_pconnect(): Various minor fixes (#4429)
- Typos
- Add various literal tags
- Remove personalization
2025-02-06 12:30:28 +00:00
Máté Kocsis
18aa2012f6 Synchronize manual with stubs for PHP 8.4 - part 8 (#4227)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-12-03 20:15:59 +01:00
KentarouTakeda
3c6c95fcfd PHP 8.4: pgsql: Add pg_set_chunked_rows_size, PGSQL_TUPLES_CHUNK (#4117)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-11-21 21:50:47 +00:00
Gina Peter Banyard
0e3624a282 Remove useless wrapping para tag in new file
Follow-up to GH-3972
2024-10-30 18:00:20 +00:00
KentarouTakeda
b984d790eb [PHP 8.4] Add manual for pg_result_memory_size() (GH-3972)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-10-30 16:23:57 +01:00
KentarouTakeda
87c67b277e refactor(ext/pgsql): Remove unnecessary error handling (GH-3973) 2024-10-30 15:47:22 +01:00
Mikhail Alferov
469e5fa809 pg-prepare.xml Amend XML syntax, add tags, clarify purpose (#3747)
* pg-prepare.xml Amend XML syntax, add tags, clarify purpose

* Update pg-prepare.xml remove trailing whitespaces
2024-09-22 19:37:17 +01:00
Mikhail Alferov
e50e797467 Remove extra space characters (GH-3737)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-09-12 23:37:42 +02:00
Sergey Panteleev
39bb8a8689 [PHP 8.3] Update PGSQL (#3187)
Co-authored-by: David CARLIER <devnexen@gmail.com>
2024-02-19 00:10:54 +00:00
Takuya Aramaki
9e6c3416c5 Replace deprecated ${var} string interpolations with {$var} (#3179) 2024-02-13 17:04:06 +00:00
David CARLIER
3f2e2d4a8c [PHP 8.3] pg_trace update (#2961) 2023-11-22 18:42:31 +00:00
David CARLIER
ebd624e434 [PHP 8.3] pgsql update (#2955)
[PHP 8.3] pgsql update

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2023-11-22 06:05:30 +00:00
David CARLIER
9d6701a720 Revert ext/pgsql pipeline mode documentation after revert (#2953)
* Revert "[skip-revcheck] fixed typo in pgsql constants update (#2951)"

This reverts commit b286de7e88.

* Revert "deleted needless example description <para>, part II."

This reverts commit 1f5de88647.

* Revert "deleted needless example description <para>."

This reverts commit 98f571b5cf.

* Revert "[PHP 8.3] pgsql constants update (#2941)"

This reverts commit 842c0ebebf.

* Revert "ext/pgsql: document new PHP 8.3 functions (#2934)"

This reverts commit 4d566363a3.
2023-11-21 00:23:34 +00:00
Yoshinari Takaoka
1f5de88647 deleted needless example description <para>, part II. 2023-11-19 18:37:11 +09:00
Yoshinari Takaoka
98f571b5cf deleted needless example description <para>. 2023-11-19 18:27:09 +09:00
David CARLIER
4d566363a3 ext/pgsql: document new PHP 8.3 functions (#2934)
* pg_set_error_context_visibility
* pg_enter_pipeline_mode
* pg_exit_pipeline_mode
* pg_pipeline_status
* pg_pipeline_sync
2023-11-14 01:25:41 +00:00
David CARLIER
2fa74a5512 ext/pgsql: pg_select document mode parameter (#2521)
* ext/pgsql: pg_select document mode parameter
Co-authored-by: George Peter Banyard <girgias@php.net>
2023-06-17 17:04:12 +01:00
Chuong
2ca0903429 fix: true return type for return true always function (#2154)
Various functions and method have had their return type changed to true.

Fix this and add changelog entries.

Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2023-02-20 16:16:37 +00:00
Christoph M. Becker
fbd75a1be5 Fix GH-2198: Typo in pg_insert() example 2023-01-16 19:59:13 +01:00
Christoph M. Becker
cfeb14a38b Fix GH-1678: The "mode" parameter of pg_fetch_row is not documented
Instead of another copy&paste, we introduce a new XML entity.
2022-07-05 18:29:50 +02:00
Christoph M. Becker
46d4ffd454 Fix GH-1679: Undocumented change of pg_fetch_all 2022-07-05 18:11:22 +02:00
emkey08
47eb355293 The default mode is PGSQL_ASSOC, not PGSQL_BOTH
Closes GH-1677.
2022-07-05 17:19:45 +02:00
Christoph M. Becker
ad618eea48 Remove grossly outdated info about PHP 4.0.3 requirement 2022-05-09 16:02:38 +02:00
Christoph M. Becker
6fcf14255c Fix #72058: pg_field_num Error with Quoted Aliases 2021-11-11 12:33:38 +01:00
Sergey Panteleev
c2eca73ef7 [PHP 8.1] Use PgSql objects instead of resources (#1009) 2021-10-16 13:45:19 +03:00
Martin Samesch
b323b5e04b typo 2021-10-15 12:40:01 +00:00
Martin Samesch
5e75ce8c92 Wrong parameter name in pg_delete (#1029) 2021-10-15 13:15:29 +01:00
Martin Samesch
2eda09ff8e typo 2021-10-12 15:53:31 +00:00
George Peter Banyard
81aced57e0 Follow-up nit
Use correct function name instead of the one from the copy/paste
Also update pg_delete as it has the same issues
2021-10-11 00:49:59 +01:00
George Peter Banyard
5589cbb636 Couple of nits to pgsql docs
Redundant paragraph
Add <constant> markup and normalize
Fix parameter name
2021-10-11 00:39:34 +01:00
Máté Kocsis
58645a79f1 Generate ext/pgsql methodsynopses based on stubs (#915) 2021-10-10 00:23:32 +02:00
Sergey Panteleev
3954d29fbd Fix issues in PgSql directory
Part of #658
2021-06-09 09:56:59 +03:00
Sergey Panteleev
184f3f7bd4 Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03:00
Sergey Panteleev
5fabd07880 Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Martin Samesch
7d763b79e5 fix fix; need some coffee 2021-02-02 12:05:13 +01:00
Martin Samesch
04c08d2238 really remove PHP 5 changelog 2021-02-02 12:01:17 +01:00
Martin Samesch
fc54f9a81a fix example; remove PHP 5 changelog 2021-02-02 11:58:19 +01:00
Anna Filina
86a02efda4 Fix #54863 by clarifying return values
Closes GH-318.
2021-01-10 12:39:08 +01:00
Christoph Michael Becker
8ce54b1eee Fix #80500: pg_fetch_result returns type is wrong according to the doc
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351978 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-09 17:29:01 +00:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
b95d28e6ec Fix return types
Functions which return false on failure should state that in their
signature as well.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
dec1f8445a Remove safe_mode related information
Sorry, translators, for breaking your builds again.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350871 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-13 22:07:26 +00:00
Christoph Michael Becker
c0a11cfec1 Note case-sensitivity of the parameter name
Patch contributed by Larry Garfield <larry@garfieldtech.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350755 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 11:01:54 +00:00