Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHP: Add extractor and initial queries#21062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
vmvarela wants to merge1 commit intogithub:main
base:main
Choose a base branch
Loading
fromvmvarela:php

Conversation

@vmvarela
Copy link

@vmvarelavmvarela commentedDec 17, 2025
edited
Loading

Working on#12376

Just as I'm opening the pull request, I see that@drmckay has just openedanother one for the same thing, and much more complete!

(I'm just adding it in case my work is of any use to him)

drmckay reacted with heart emoji
CopilotAI review requested due to automatic review settingsDecember 17, 2025 16:21
@vmvarelavmvarela requested review froma team ascode ownersDecember 17, 2025 16:21
@vmvarelavmvarela marked this pull request as draftDecember 17, 2025 16:21
@vmvarelavmvarela changed the titleAdd PHP extractor and initial queriesAdd PHP extractor and initial queries :-(Dec 17, 2025
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR adds an initial PHP extractor and query support to the CodeQL repository. The implementation includes a Rust-based tree-sitter extractor, database schema generation, basic security queries, and minimal taint tracking capabilities. The author notes this is a minimal viable product (MVP) submission, with another more complete implementation by@drmckay also in progress.

Key changes:

  • Tree-sitter-based PHP extractor written in Rust
  • Auto-generated database schema and TreeSitter.qll library
  • Three initial security queries: DangerousBuiltinCall, TaintedDangerousBuiltinCall, and AssertWithStringArgument
  • Basic taint analysis and security modeling for PHP superglobals

Reviewed changes

Copilot reviewed 54 out of 57 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
php/tools/.sh, php/tools/.cmdShell and batch scripts for test execution and file indexing
php/scripts/create-extractor-pack.shBuild script for creating the extractor pack
php/ql/test/query-tests/Security/*Test cases and expected results for security queries
php/ql/src/Security/*.qlThree security queries for dangerous builtins and assert misuse
php/ql/lib/codeql/php/security/*.qllBasic security modeling (sources, sinks, taint)
php/ql/lib/codeql/php/ast/*.qllCall abstraction library and TreeSitter wrapper
php/extractor/src/*.rsRust extractor implementation (main, generator, extractor, autobuilder)
php/extractor/Cargo.tomlRust dependencies configuration
php/**/BUILD.bazelBazel build configuration files
.github/workflows/php.ymlCI workflow for PHP extractor and tests
misc/bazel/3rdparty/*Third-party dependency configuration for tree-sitter-php

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

@vmvarelavmvarela changed the titleAdd PHP extractor and initial queries :-(PHP: Add extractor and initial queriesDec 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@vmvarela

[8]ページ先頭

©2009-2025 Movatter.jp