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 telemetry: the severity word is matched anywhere later on the line, not as the logging method #9448
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: after the logger token the rule has .*?(?:info|error|warning|...)\b with re.I, so what decides a hit is a severity word anywhere on the line, not the called method. Two results follow.
False positive (expected 0, actual 1): Log::get($info); is a read, not a log call. False negative (expected 1, actual 0): error_log("x", 3, "/tmp/app.log"); is a log call (it is a listed branch), but counts only when the message happens to contain a severity word (error_log("Error occurred") counts, error_log("failed") does not).
Locked in tests/decoys/test_decoy_php.py (test_php_telemetry_severity_must_be_the_method, test_php_telemetry_error_log_is_a_log_call).
Activity
tests/decoys: SOP-002 gap-cell decoys for cpp, scala, php (6 cells) (…