Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680757
D25801.1734621603.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
573 B
Referenced Files
None
Subscribers
None
D25801.1734621603.diff
View Options
diff --git a/src/parser/xhpast/api/XHPASTNode.php b/src/parser/xhpast/api/XHPASTNode.php
--- a/src/parser/xhpast/api/XHPASTNode.php
+++ b/src/parser/xhpast/api/XHPASTNode.php
@@ -235,7 +235,7 @@
switch ($c) {
case 'x':
$u = isset($value[$ii + 1]) ? $value[$ii + 1] : null;
- if (!preg_match('/^[a-f0-9]/i', $u)) {
+ if ($u === null || !preg_match('/^[a-f0-9]/i', $u)) {
// PHP treats \x followed by anything which is not a hex digit
// as a literal \x.
$out .= '\\\\'.$c;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 15:20 (4 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015128
Default Alt Text
D25801.1734621603.diff (573 B)
Attached To
Mode
D25801: Fix PHP 8.1 "preg_match(null)" exception in XHPASTNode
Attached
Detach File
Event Timeline
Log In to Comment