You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpsysinfo is not working with modern php. here is a quick fix.
diff --git a/admin/phpsysinfo/includes/XPath.class.php b/admin/phpsysinfo/includes/XPath.class.php
index 7425638..670ec49 100644
--- a/admin/phpsysinfo/includes/XPath.class.php
+++ b/admin/phpsysinfo/includes/XPath.class.php
@@ -3849,14 +3849,14 @@ class XPathEngine extends XPathBase {
$step = '.';
$axis['axis'] = 'self';
$axis['node-test'] = '*';
- break $parseBlock;
+ break 1;
}
if ($step == '..') {
// Select the parent axis.
$axis['axis'] = 'parent';
$axis['node-test'] = '*';
- break $parseBlock;
+ break 1;
}
///////////////////////////////////////////////////
@@ -3908,7 +3908,7 @@ class XPathEngine extends XPathBase {
if ($step == '*') {
// Use the child axis and select all children.
$axis['node-test'] = '*';
- break $parseBlock;
+ break 1;
}
// ### I'm pretty sure our current handling of cdata is a fudge, and we should
@@ -3916,7 +3916,7 @@ class XPathEngine extends XPathBase {
if ($step == "text()") {
// Handle the text node
$axis["node-test"] = "cdata";
- break $parseBlock;
+ break 1;
}
// There are a few node tests that we match verbatim.
@@ -3925,14 +3925,14 @@ class XPathEngine extends XPathBase {
|| $step == "text()"
|| $step == "processing-instruction") {
$axis["node-test"] = $step;
- break $parseBlock;
+ break 1;
}
// processing-instruction() is allowed to take an argument, but if it does, the argument
// is a literal, which we will have parsed out to $[number].
if (preg_match(":processing-instruction\(\$\d*\):", $step)) {
$axis["node-test"] = $step;
- break $parseBlock;
+ break 1;
}
// The only remaining way this can be a step, is if the remaining string is a simple name
@@ -3961,7 +3961,7 @@ class XPathEngine extends XPathBase {
// Not currently recursing
$LastFailedStep = '';
$LastFailedContext = '';
- break $parseBlock;
+ break 1;
}
// It's not a node then, we must treat it as a PrimaryExpr
The text was updated successfully, but these errors were encountered:
phpsysinfo is not working with modern php. here is a quick fix.
The text was updated successfully, but these errors were encountered: