Skip to content

lens: a PHP .inc file resolves to php on PHP evidence (agy-authored, Sonnet-checked) (Fixes #4973) - #5014

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4973-20261012T2156Z
Oct 13, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4973-20261012T2156Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

agy-authored, Sonnet-checked. Fixes #4973.

Fix: php gains internal_discriminator (<?php / <?=) and extensions_needing_discriminator: [".inc"] (same mechanism as objective-c .h), so a .inc is PHP on PHP evidence (Tier 2) and never by neighbourhood vote.

Class: shared .inc (cpp, c, php, fortran, assembly). php: handled. Tests cover 9 PHP styles and 7 non-PHP styles, each alone and beside c/cpp/fortran/assembly/php neighbours, plus .php unaffected and the discriminator's ReDoS immunity.

Golden: regenerated with crucible_check.py --update --yes, both legs. Re-run by the checker on merged main: no drift. scope_check --expect php diffs: php, plus schema.php files under the sql corpus dir that now get "Ext + Internal Signature" proof (a .php with PHP evidence; same cause), plus rollups.

Gates: pr_gates --fast 5/5, --ratchets 7/7, 0 skipped.

Cross-repo: none.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 13, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 13, 2026 02:50
@squid-protocol
squid-protocol enabled auto-merge (squash) October 13, 2026 02:50
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 600318d into main Oct 13, 2026
46 checks passed
@squid-protocol
squid-protocol deleted the churn/4973-20261012T2156Z branch October 13, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lens: a PHP .inc file resolves to c (no php .inc discriminator)

1 participant