Skip to content

PHP: text outside <?php ... ?> tags (inline HTML) is counted as code in every keyword family #9444

Backlog

Description

@squid-protocol

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

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions