Changeset View
Changeset View
Standalone View
Standalone View
src/parser/xhpast/api/XHPASTTree.php
Context not available. | |||||
if ($err) { | if ($err) { | ||||
if ($err == 1) { | if ($err == 1) { | ||||
$matches = null; | $matches = null; | ||||
$is_syntax = preg_match( | $is_syntax = @preg_match( | ||||
'/^XHPAST Parse Error: (.*) on line (\d+)/s', | '/^XHPAST Parse Error: (.*) on line (\d+)/s', | ||||
$stderr, | $stderr, | ||||
$matches); | $matches); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0