diff --git a/README.md b/README.md index f7b445f..b001e7b 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,9 @@ So to get started with a new language, copy the `example.json` to the language y ## Releases +**Version 3.5.3**\ +Worked around some inconsistencies with links in the opcache documentation on php.net. + **Version 3.5.2**\ Removed some warnings for PHP 8.2 by dropping the `namespace` and `use` statements in the bundled `index.php` file. diff --git a/build/_frontend/interface.jsx b/build/_frontend/interface.jsx index be74bef..56a07a4 100644 --- a/build/_frontend/interface.jsx +++ b/build/_frontend/interface.jsx @@ -383,10 +383,25 @@ function Directives(props) { vShow = directive.v; } } + let directiveLink = (name) => { + if (name === 'opcache.jit_max_recursive_returns') { + return 'opcache.jit-max-recursive-return'; + } + return ( + [ + 'opcache.file_update_protection', + 'opcache.huge_code_pages', + 'opcache.lockfile_path', + 'opcache.opt_debug_level', + ].includes(name) + ? name + : name.replace(/_/g,'-') + ); + } return ( {dShow} + + directiveLink(directive.k)} target="_blank">{dShow} {vShow} ); diff --git a/build/build.php b/build/build.php index 1622056..ca627b6 100644 --- a/build/build.php +++ b/build/build.php @@ -4,7 +4,7 @@ * OPcache GUI - build script * * @author Andrew Collington, andy@amnuts.com - * @version 3.5.2 + * @version 3.5.3 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ diff --git a/build/template.phps b/build/template.phps index f13449d..f3af19a 100644 --- a/build/template.phps +++ b/build/template.phps @@ -6,7 +6,7 @@ * A simple but effective single-file GUI for the OPcache PHP extension. * * @author Andrew Collington, andy@amnuts.com - * @version 3.5.2 + * @version 3.5.3 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ diff --git a/index.php b/index.php index db447ff..9ecc9d0 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,7 @@ * A simple but effective single-file GUI for the OPcache PHP extension. * * @author Andrew Collington, andy@amnuts.com - * @version 3.5.2 + * @version 3.5.3 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ @@ -59,7 +59,7 @@ header('Pragma: no-cache'); class Service { - public const VERSION = '3.5.2'; + public const VERSION = '3.5.3'; protected $tz; protected $data; @@ -936,12 +936,20 @@ function Directives(props) { } } + let directiveLink = name => { + if (name === 'opcache.jit_max_recursive_returns') { + return 'opcache.jit-max-recursive-return'; + } + + return ['opcache.file_update_protection', 'opcache.huge_code_pages', 'opcache.lockfile_path', 'opcache.opt_debug_level'].includes(name) ? name : name.replace(/_/g, '-'); + }; + return /*#__PURE__*/React.createElement("tr", { key: directive.k }, /*#__PURE__*/React.createElement("td", { title: props.txt('View {0} manual entry', directive.k) }, /*#__PURE__*/React.createElement("a", { - href: 'https://php.net/manual/en/opcache.configuration.php#ini.' + directive.k.replace(/_/g, '-'), + href: 'https://php.net/manual/en/opcache.configuration.php#ini.' + directiveLink(directive.k), target: "_blank" }, dShow)), /*#__PURE__*/React.createElement("td", null, vShow)); }); diff --git a/package.json b/package.json index 73af23f..160dfe2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opcache-gui", "description": "A clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information (using jQuery and React).", - "version": "3.5.2", + "version": "3.5.3", "main": "index.js", "devDependencies": { "@babel/cli": "^7.12.8", diff --git a/src/Opcache/Service.php b/src/Opcache/Service.php index a6a9808..ab785ee 100644 --- a/src/Opcache/Service.php +++ b/src/Opcache/Service.php @@ -8,7 +8,7 @@ use Exception; class Service { - public const VERSION = '3.5.2'; + public const VERSION = '3.5.3'; protected $tz; protected $data;