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
{{ message }}
Repository navigation
PHP: text outside <?php ... ?> tags (inline HTML) is counted as code in every keyword family #9444
Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863). Locked in as xfail(strict=True); no engine change in that PR.
Construct: bytes outside the PHP tags are output text, not code. Prism counts them.
Snippet:
<p>Log::info("x");</p>
<?php$x = 1; ?>
Expected: 0 telemetry hits. Actual: 1. Same for <p>public function run() {}</p> (api) and for the HTML after a closing tag: <?php $x = 1; ?>\n<p>Log::info("x");</p>. The code after ?> inside a // comment is already handled (0 hits).
Locked in tests/decoys/test_decoy_php.py::test_php_inline_html_is_not_code.
Activity