summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION245
-rw-r--r--composer.json2
-rw-r--r--fastchart-tests.patch25
-rw-r--r--php-iliaal-fastchart.spec11
5 files changed, 253 insertions, 32 deletions
diff --git a/PHPINFO b/PHPINFO
index 9c207c3..1d45ffb 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
fastchart
fastchart support => enabled
-fastchart version => 1.1.6
+fastchart version => 1.2.0
FreeType => 2.13.3
libpng => 1.6.58
libjpeg => 3.1.3 (turbo)
diff --git a/REFLECTION b/REFLECTION
index 069e5eb..a50b6d5 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
+Extension [ <persistent> extension #83 fastchart version 1.2.0 ] {
- Classes [31] {
Class [ <internal:fastchart> abstract class FastChart\Chart ] {
@@ -109,7 +109,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [70] {
+ - Methods [71] {
Method [ <internal:fastchart, ctor> public method __construct ] {
- Parameters [2] {
@@ -704,6 +704,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -815,7 +822,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [74] {
+ - Methods [75] {
Method [ <internal:fastchart> public method setSeries ] {
- Parameters [1] {
@@ -1442,6 +1449,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -1553,7 +1567,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [74] {
+ - Methods [75] {
Method [ <internal:fastchart> public method setSeries ] {
- Parameters [1] {
@@ -2180,6 +2194,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -2293,7 +2314,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [75] {
+ - Methods [76] {
Method [ <internal:fastchart> public method setSeries ] {
- Parameters [1] {
@@ -2928,6 +2949,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -3039,7 +3067,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [76] {
+ - Methods [77] {
Method [ <internal:fastchart> public method setSlices ] {
- Parameters [1] {
@@ -3683,6 +3711,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -3794,7 +3829,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [75] {
+ - Methods [76] {
Method [ <internal:fastchart> public method setPoints ] {
- Parameters [1] {
@@ -4431,6 +4466,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -4545,7 +4587,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [85] {
+ - Methods [86] {
Method [ <internal:fastchart> public method setOhlcv ] {
- Parameters [1] {
@@ -5267,6 +5309,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -5378,7 +5427,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [73] {
+ - Methods [74] {
Method [ <internal:fastchart> public method setSeries ] {
- Parameters [1] {
@@ -5997,6 +6046,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -6108,7 +6164,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setPoints ] {
- Parameters [1] {
@@ -6711,6 +6767,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -6822,7 +6885,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [72] {
+ - Methods [73] {
Method [ <internal:fastchart> public method setGrid ] {
- Parameters [1] {
@@ -7434,6 +7497,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -7545,7 +7615,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [74] {
+ - Methods [75] {
Method [ <internal:fastchart> public method setValue ] {
- Parameters [1] {
@@ -8173,6 +8243,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -8284,7 +8361,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [73] {
+ - Methods [74] {
Method [ <internal:fastchart> public method setTasks ] {
- Parameters [1] {
@@ -8904,6 +8981,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -9015,7 +9099,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [72] {
+ - Methods [73] {
Method [ <internal:fastchart> public method setBoxes ] {
- Parameters [1] {
@@ -9626,6 +9710,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -9739,7 +9830,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [76] {
+ - Methods [77] {
Method [ <internal:fastchart> public method setSeries ] {
- Parameters [1] {
@@ -10382,6 +10473,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -10493,7 +10591,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [73] {
+ - Methods [74] {
Method [ <internal:fastchart> public method setGrid ] {
- Parameters [1] {
@@ -11112,6 +11210,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -11223,7 +11328,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [72] {
+ - Methods [73] {
Method [ <internal:fastchart> public method setItems ] {
- Parameters [1] {
@@ -11834,6 +11939,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -11948,7 +12060,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [72] {
+ - Methods [73] {
Method [ <internal:fastchart> public method setStages ] {
- Parameters [1] {
@@ -12559,6 +12671,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -12670,7 +12789,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [74] {
+ - Methods [75] {
Method [ <internal:fastchart> public method setBars ] {
- Parameters [1] {
@@ -13297,6 +13416,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -13408,7 +13534,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setGrid ] {
- Parameters [1] {
@@ -14011,6 +14137,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -14124,7 +14257,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [75] {
+ - Methods [76] {
Method [ <internal:fastchart> public method setRange ] {
- Parameters [2] {
@@ -14760,6 +14893,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -14871,7 +15011,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [75] {
+ - Methods [76] {
Method [ <internal:fastchart> public method setRange ] {
- Parameters [2] {
@@ -15507,6 +15647,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -15618,7 +15765,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [73] {
+ - Methods [74] {
Method [ <internal:fastchart> public method setBars ] {
- Parameters [1] {
@@ -16237,6 +16384,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -16348,7 +16502,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setData ] {
- Parameters [1] {
@@ -16951,6 +17105,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -17062,7 +17223,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setHierarchy ] {
- Parameters [1] {
@@ -17665,6 +17826,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -17776,7 +17944,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [72] {
+ - Methods [73] {
Method [ <internal:fastchart> public method setNodes ] {
- Parameters [1] {
@@ -18387,6 +18555,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -18498,7 +18673,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setColumns ] {
- Parameters [1] {
@@ -19101,6 +19276,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
@@ -19212,7 +19394,7 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
- Properties [0] {
}
- - Methods [71] {
+ - Methods [72] {
Method [ <internal:fastchart> public method setVectors ] {
- Parameters [1] {
@@ -19815,6 +19997,13 @@ Extension [ <persistent> extension #83 fastchart version 1.1.6 ] {
}
- Return [ string ]
}
+
+ Method [ <internal:fastchart, inherits FastChart\Chart> public method getImageMapAreas ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
}
diff --git a/composer.json b/composer.json
index e4be7d3..54eb6be 100644
--- a/composer.json
+++ b/composer.json
@@ -12,7 +12,7 @@
}
],
"require": {
- "php": ">=8.3"
+ "php": ">=8.1"
},
"php-ext": {
"extension-name": "fastchart",
diff --git a/fastchart-tests.patch b/fastchart-tests.patch
new file mode 100644
index 0000000..a091ae6
--- /dev/null
+++ b/fastchart-tests.patch
@@ -0,0 +1,25 @@
+From e373460b0f970bd908b26e041bdb37f04fe900cb Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 12 Jun 2026 08:19:02 +0200
+Subject: [PATCH] Relax test expectation
+
+---
+ tests/187_svg_dims_int_max_boundary.phpt | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/187_svg_dims_int_max_boundary.phpt b/tests/187_svg_dims_int_max_boundary.phpt
+index 5d47cec..99c1604 100644
+--- a/tests/187_svg_dims_int_max_boundary.phpt
++++ b/tests/187_svg_dims_int_max_boundary.phpt
+@@ -50,8 +50,8 @@ foreach (['2147483520', '2147483648'] as $dim) {
+ }
+
+ ?>
+---EXPECT--
++--EXPECTF--
+ 2.147483648e9: ValueError (intrinsic-dims)
+ 1e10: ValueError (intrinsic-dims)
+-2147483520: ValueError (cap)
+-2147483648: ValueError (cap)
++2147483520: ValueError (%s)
++2147483648: ValueError (%s)
diff --git a/php-iliaal-fastchart.spec b/php-iliaal-fastchart.spec
index ecffcf7..8f3b4ab 100644
--- a/php-iliaal-fastchart.spec
+++ b/php-iliaal-fastchart.spec
@@ -30,7 +30,7 @@ Summary: Native C PHP extension for fast chart rendering
# Extension is BSD-3-Clause
# Libraries are MIT
License: BSD-3-Clause AND MIT
-Version: 1.1.6
+Version: 1.2.0
Release: 1%{?dist}
%forgemeta
URL: %{forgeurl}
@@ -38,10 +38,12 @@ Source0: %{forgesource}
# RPM font path first and remove Windows fonts
Patch0: %{pie_proj}-rpm.patch
+# https://github.com/iliaal/fastchart/pull/9
+Patch1: %{pie_proj}-tests.patch
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel >= 8.3
+BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libjpeg)
@@ -95,6 +97,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%forgesetup
%patch -P0 -p1 -b .rpm
+%patch -P1 -p1 -b .pr
cp vendor/qrcodegen/LICENSE qrcodegen_LICENSE
cp vendor/plutovg/LICENSE plutovg_LICENSE
@@ -165,6 +168,10 @@ TEST_PHP_ARGS="-n -d extension=gd -d extension=simplexml -d extension=%{buildroo
%changelog
+* Fri Jun 12 2026 Remi Collet <remi@remirepo.net> - 1.2.0-1
+- update to 1.2.0
+- open https://github.com/iliaal/fastchart/pull/9 relax test expectations
+
* Fri Jun 5 2026 Remi Collet <remi@remirepo.net> - 1.1.6-1
- update to 1.1.6