## 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`.
PHP Documentation
Please refer to the contribution guidelines and the README file within the doc-base repository for details on how to contribute to PHP's documentation.
The PHP manual is available at php.net/docs.
Creating this setup
For information related to creating this setup, see the contribution guidelines or this page on our documentation website.
Building With make and Docker
- Install Docker (https://docs.docker.com/get-docker/)
- Rebuild the documentation using
make - Open output/php-chunked-xhtml/ in your browser.
If the doc-base or phd repositories are available in directories to the
adjacent to this directory, those will be used for building.
To force the Docker image used for building to itself be rebuilt, you can run
make -B build, otherwise the Makefile will only build it if does not
already exist.
You can also build the web version of the documentation with make php
and the output will be placed in output/php-web
Translations
For the translations of this documentation, see:
- Brazilian Portuguese (doc-pt_br)
- Chinese (Simplified) (doc-zh)
- English (doc-en)
- French (doc-fr)
- German (doc-de)
- Italian (doc-it)
- Japanese (doc-ja)
- Polish (doc-pl)
- Romanian (doc-ro)
- Russian (doc-ru)
- Spanish (doc-es)
- Turkish (doc-tr)
- Ukrainian (doc-uk)
Documentation pipeline
For more information on the various repositories that make up PHP's documentation pipeline, see this overview.