summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-06-12 08:00:57 +0200
committerRemi Collet <remi@php.net>2026-06-12 08:00:57 +0200
commitc50e3a9a24392c1b53d25eb6a6dfd13fd7d5ecc0 (patch)
treebd98f5a2f0e38fc12041ccbd1c67dca9c8240aa4
parent01c77362ae566b1cba9556de4cec580187b13f56 (diff)
update to 0.4.0HEADmaster
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION52
-rw-r--r--composer.json4
-rw-r--r--php-iliaal-fastjson.spec7
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 [ <persistent> extension #84 fastjson version 0.3.0 ] {
+Extension [ <persistent> extension #84 fastjson version 0.4.0 ] {
- - Constants [7] {
+ - Dependencies {
+ Dependency [ json (Optional) ]
+ }
+
+ - Constants [9] {
Constant [ <persistent> int FASTJSON_ERROR_NONE ] { 0 }
Constant [ <persistent> int FASTJSON_ERROR_DEPTH ] { 1 }
Constant [ <persistent> int FASTJSON_ERROR_SYNTAX ] { 4 }
@@ -8,6 +12,8 @@ Extension [ <persistent> extension #84 fastjson version 0.3.0 ] {
Constant [ <persistent> int FASTJSON_ERROR_RECURSION ] { 6 }
Constant [ <persistent> int FASTJSON_ERROR_INF_OR_NAN ] { 7 }
Constant [ <persistent> int FASTJSON_ERROR_UNSUPPORTED_TYPE ] { 8 }
+ Constant [ <persistent> int FASTJSON_ERROR_NON_BACKED_ENUM ] { 11 }
+ Constant [ <persistent> int FASTJSON_DECODE_RELAXED ] { 8388608 }
}
- Functions {
@@ -26,6 +32,16 @@ Extension [ <persistent> extension #84 fastjson version 0.3.0 ] {
}
- Return [ string|false ]
}
+ Function [ <internal:fastjson> function fastjson_file_encode ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <required> mixed $value ]
+ Parameter #2 [ <optional> int $flags = 0 ]
+ Parameter #3 [ <optional> int $depth = 512 ]
+ }
+ - Return [ bool ]
+ }
Function [ <internal:fastjson> function fastjson_decode ] {
- Parameters [4] {
@@ -36,6 +52,38 @@ Extension [ <persistent> extension #84 fastjson version 0.3.0 ] {
}
- Return [ mixed ]
}
+ Function [ <internal:fastjson> function fastjson_file_decode ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> ?bool $associative = null ]
+ Parameter #2 [ <optional> int $depth = 512 ]
+ Parameter #3 [ <optional> int $flags = 0 ]
+ }
+ - Return [ mixed ]
+ }
+ Function [ <internal:fastjson> function fastjson_pointer_get ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> string $json ]
+ Parameter #1 [ <required> string $pointer ]
+ Parameter #2 [ <optional> ?bool $associative = null ]
+ Parameter #3 [ <optional> int $depth = 512 ]
+ Parameter #4 [ <optional> int $flags = 0 ]
+ }
+ - Return [ mixed ]
+ }
+ Function [ <internal:fastjson> function fastjson_merge_patch ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> string $target ]
+ Parameter #1 [ <required> string $patch ]
+ Parameter #2 [ <optional> ?bool $associative = null ]
+ Parameter #3 [ <optional> int $depth = 512 ]
+ Parameter #4 [ <optional> int $flags = 0 ]
+ }
+ - Return [ mixed ]
+ }
Function [ <internal:fastjson> 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 <remi@remirepo.net> - 0.4.0-1
+- update to 0.4.0
+
* Tue May 19 2026 Remi Collet <remi@remirepo.net> - 0.3.0-1
- update to 0.3.0