antgroup / antgroup/YASA-Engine

关于php语言支持问题

Open
#127 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
323
Forks
40
PR merge metrics
No merged PRs in 30d

Description

您好,请问php语言支持什么框架呢?是否支持Laravel ?我在运行以下命令时,
./yasa-engine-macos-arm64
--sourcePath /Users/jjjj/Downloads/php/Platform
--language php
--report ./yasa-php-report
--ruleConfigFile /Users/jjjj/Downloads/yasa/yasa-macos-arm64/example-rule-config/rule_config_php.json

会报错,请问老师们知道是为啥么
analyzer detect failed, use default language analyzer
[YASA][init] Analysis language: php
[YASA][init] Analysis analyzer: PhpAnalyzer
Error occurred in CheckerManager_ctor
[YASA] Executing preProcess
Error occurred in analyzer analyzeProject: WebAssembly.instantiate(): unknown section code #0x3d @+29
CompileError: WebAssembly.instantiate(): unknown section code #0x3d @+29
[YASA] Execution completed, cost: 71ms, heap: 26.37/62.05 MB, rss: 109.84 MB, arrayBuffers: 3.91 MB
[YASA] Completed preProcess, cost: 23ms, heap: 26.38/62.05 MB, rss: 109.84 MB, arrayBuffers: 3.91 MB

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the command with --language php and the referenced rule_config_php.json, then inspect the PhpAnalyzer entry point and the WebAssembly initialization reported in the output. Confirm whether Laravel is supported and identify what causes the unknown section code error; the issue is complete when PHP analysis behavior and any required limitation or fix are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.