Skip to content

PHP telemetry: the logger( branch has no leading word boundary (my_logger(), getlogger()) #9447

In progress

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: the telemetry rule is (?:\b(?:Log::|...)\b|logger\().*?(?:info|...)\b. The logger\( branch lacks the leading \b its siblings have, so an identifier that only ends in logger( matches.

Snippets (each expected 0, actual 1):

<?php
my_logger()->info("x");
mylogger()->info("x");

Contrast MyLog::info("x") and my_error_log("an error"), which correctly give 0 (SOP-002 Requirement B: call-shaped branch with an identifier prefix).

Locked in tests/decoys/test_decoy_php.py::test_php_telemetry_logger_call_boundary.

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