diff --git a/CHANGELOG.md b/CHANGELOG.md index fec3bcf..ed2ed75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to PL/php are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project aims to follow [Semantic Versioning](https://semver.org/). -## [Unreleased] +## [2.3.0] — 2026-07-06 ### Added diff --git a/Makefile b/Makefile index 17c2122..6355fa7 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ MODULE_big = plphp OBJS = plphp.o plphp_io.o plphp_spi.o EXTENSION = plphp -DATA = plphp--2.2.sql plphp--2.0--2.1.sql plphp--2.1--2.2.sql +DATA = plphp--2.3.sql plphp--2.0--2.1.sql plphp--2.1--2.2.sql plphp--2.2--2.3.sql # PHP embed SAPI compile/link flags, discovered via php-config. PHP_CONFIG ?= php-config diff --git a/plphp--2.2--2.3.sql b/plphp--2.2--2.3.sql new file mode 100644 index 0000000..4181737 --- /dev/null +++ b/plphp--2.2--2.3.sql @@ -0,0 +1,11 @@ +/* Upgrade PL/php from 2.2 to 2.3. + * + * 2.3 adds VARIADIC parameter support, converts array columns inside rows + * to PHP arrays, adds CI, supports PHP 8.1 through 8.4, and hardens the + * interpreter against host php.ini settings. All of it lives in the C + * module, which PostgreSQL loads by path, so there is nothing to change at + * the SQL level. + */ + +-- complain if script is sourced in psql, rather than via ALTER EXTENSION +\echo Use "ALTER EXTENSION plphp UPDATE" to load this file. \quit diff --git a/plphp--2.2.sql b/plphp--2.3.sql similarity index 100% rename from plphp--2.2.sql rename to plphp--2.3.sql diff --git a/plphp.control b/plphp.control index eaaec54..1467efc 100644 --- a/plphp.control +++ b/plphp.control @@ -5,6 +5,6 @@ # the server's OS user. The extension is therefore superuser-only to install # and the language is created without the TRUSTED attribute. comment = 'PL/php procedural language (untrusted)' -default_version = '2.2' +default_version = '2.3' module_pathname = '$libdir/plphp' relocatable = false