commit
edbcbbedd0
7 changed files with 34 additions and 8 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 (
|
||||
<tr key={directive.k}>
|
||||
<td title={props.txt('View {0} manual entry', directive.k)}><a href={'https://php.net/manual/en/opcache.configuration.php#ini.'
|
||||
+ (directive.k).replace(/_/g,'-')} target="_blank">{dShow}</a></td>
|
||||
+ directiveLink(directive.k)} target="_blank">{dShow}</a></td>
|
||||
<td>{vShow}</td>
|
||||
</tr>
|
||||
);
|
||||
|
|
|
@ -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/
|
||||
*/
|
||||
|
|
|
@ -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/
|
||||
*/
|
||||
|
|
14
index.php
14
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));
|
||||
});
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -8,7 +8,7 @@ use Exception;
|
|||
|
||||
class Service
|
||||
{
|
||||
public const VERSION = '3.5.2';
|
||||
public const VERSION = '3.5.3';
|
||||
|
||||
protected $tz;
|
||||
protected $data;
|
||||
|
|
Loading…
Reference in a new issue