From c50e3a9a24392c1b53d25eb6a6dfd13fd7d5ecc0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 12 Jun 2026 08:00:57 +0200 Subject: update to 0.4.0 --- PHPINFO | 2 +- REFLECTION | 52 ++++++++++++++++++++++++++++++++++++++++++++++-- composer.json | 4 ++-- php-iliaal-fastjson.spec | 7 +++++-- 4 files changed, 58 insertions(+), 7 deletions(-) diff --git a/PHPINFO b/PHPINFO index 82a479f..fceba58 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ fastjson fastjson support => enabled -Version => 0.3.0 +Version => 0.4.0 Backend => yyjson 0.12.0 diff --git a/REFLECTION b/REFLECTION index 4e5af15..d86f3db 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,6 +1,10 @@ -Extension [ extension #84 fastjson version 0.3.0 ] { +Extension [ extension #84 fastjson version 0.4.0 ] { - - Constants [7] { + - Dependencies { + Dependency [ json (Optional) ] + } + + - Constants [9] { Constant [ int FASTJSON_ERROR_NONE ] { 0 } Constant [ int FASTJSON_ERROR_DEPTH ] { 1 } Constant [ int FASTJSON_ERROR_SYNTAX ] { 4 } @@ -8,6 +12,8 @@ Extension [ extension #84 fastjson version 0.3.0 ] { Constant [ int FASTJSON_ERROR_RECURSION ] { 6 } Constant [ int FASTJSON_ERROR_INF_OR_NAN ] { 7 } Constant [ int FASTJSON_ERROR_UNSUPPORTED_TYPE ] { 8 } + Constant [ int FASTJSON_ERROR_NON_BACKED_ENUM ] { 11 } + Constant [ int FASTJSON_DECODE_RELAXED ] { 8388608 } } - Functions { @@ -26,6 +32,16 @@ Extension [ extension #84 fastjson version 0.3.0 ] { } - Return [ string|false ] } + Function [ function fastjson_file_encode ] { + + - Parameters [4] { + Parameter #0 [ string $filename ] + Parameter #1 [ mixed $value ] + Parameter #2 [ int $flags = 0 ] + Parameter #3 [ int $depth = 512 ] + } + - Return [ bool ] + } Function [ function fastjson_decode ] { - Parameters [4] { @@ -36,6 +52,38 @@ Extension [ extension #84 fastjson version 0.3.0 ] { } - Return [ mixed ] } + Function [ function fastjson_file_decode ] { + + - Parameters [4] { + Parameter #0 [ string $filename ] + Parameter #1 [ ?bool $associative = null ] + Parameter #2 [ int $depth = 512 ] + Parameter #3 [ int $flags = 0 ] + } + - Return [ mixed ] + } + Function [ function fastjson_pointer_get ] { + + - Parameters [5] { + Parameter #0 [ string $json ] + Parameter #1 [ string $pointer ] + Parameter #2 [ ?bool $associative = null ] + Parameter #3 [ int $depth = 512 ] + Parameter #4 [ int $flags = 0 ] + } + - Return [ mixed ] + } + Function [ function fastjson_merge_patch ] { + + - Parameters [5] { + Parameter #0 [ string $target ] + Parameter #1 [ string $patch ] + Parameter #2 [ ?bool $associative = null ] + Parameter #3 [ int $depth = 512 ] + Parameter #4 [ int $flags = 0 ] + } + - Return [ mixed ] + } Function [ function fastjson_validate ] { - Parameters [3] { diff --git a/composer.json b/composer.json index a0945fe..638ab60 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "iliaal/fastjson", "type": "php-ext", - "description": "Fast JSON encode/decode/validate for PHP 8.3+, backed by yyjson. Drop-in alternative to ext/json with namespaced fastjson_* functions and json_last_error-compatible error reporting.", + "description": "Fast JSON encode/decode/validate for PHP 8.1+, backed by yyjson. Drop-in alternative to ext/json with namespaced fastjson_* functions and json_last_error-compatible error reporting.", "keywords": ["json", "yyjson", "decode", "encode", "validate", "performance", "php-extension", "pie"], "license": ["BSD-3-Clause", "MIT"], "homepage": "https://github.com/iliaal/fastjson", @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.3" + "php": ">=8.1" }, "php-ext": { "extension-name": "fastjson", diff --git a/php-iliaal-fastjson.spec b/php-iliaal-fastjson.spec index 60a1c75..2b2484b 100644 --- a/php-iliaal-fastjson.spec +++ b/php-iliaal-fastjson.spec @@ -32,7 +32,7 @@ Summary: Fast JSON encode/decode/validate for PHP # Extension is BSD-3-Clause # Library is MIT License: BSD-3-Clause AND MIT -Version: 0.3.0 +Version: 0.4.0 Release: 1%{?dist} %forgemeta URL: %{forgeurl} @@ -41,7 +41,7 @@ Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 8.3 +BuildRequires: %{?scl_prefix}php-devel >= 8.1 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -140,6 +140,9 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{ext_name}.so" \ %changelog +* Fri Jun 12 2026 Remi Collet - 0.4.0-1 +- update to 0.4.0 + * Tue May 19 2026 Remi Collet - 0.3.0-1 - update to 0.3.0 -- cgit