https://github.com/phan/phanprototypes
Prototypes/experiments for plugins for Phan, etc.
https://github.com/phan/phanprototypes
phan phan-plugin
Last synced: about 1 year ago
JSON representation
Prototypes/experiments for plugins for Phan, etc.
- Host: GitHub
- URL: https://github.com/phan/phanprototypes
- Owner: phan
- Created: 2018-09-24T17:51:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T18:01:56.000Z (over 7 years ago)
- Last Synced: 2025-02-14T15:58:41.839Z (over 1 year ago)
- Topics: phan, phan-plugin
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Phan Prototypes
===============
Ideas for Phan that aren't ready for inclusion in Phan
Plugins
-------
### SCCP Plugin
[plugins/sccp.php](plugins/sccp.php) contains a prototype of a plugin warning about blocks of code that are giant no-ops. https://github.com/phan/phan/issues/1145
PHP's Opcache has SCCP (Sparse Constant Conditional Propogation) and DCE (Dead Code Elimination), which are improved in 7.2 and 7.3.
- This plugin works, but uses heuristics that may change in future PHP versions.
Parsing the opcache text output is fragile.
- In practice, this plugin doesn't detect many bugs, because code usually doesn't have that type of bug
- This plugin is also very slow. Adding caching might help with that.