https://github.com/nikic/php-crater
Like crater, but for PHP
https://github.com/nikic/php-crater
Last synced: 9 months ago
JSON representation
Like crater, but for PHP
- Host: GitHub
- URL: https://github.com/nikic/php-crater
- Owner: nikic
- Created: 2020-11-11T13:09:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T10:52:15.000Z (11 months ago)
- Last Synced: 2025-04-13T05:13:31.411Z (9 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 71
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP Crater
==========
This is like [rust-lang/crater](https://github.com/rust-lang/crater), but for PHP. Well, a very, very cheap rip-off of crater really.
I'm using this to run PHPUnit tests for the top composer packages against a sanitizer-instrumented debug build of PHP, and looking for any crashes, assertion failures, sanitizer violations and leaks that show up.
Usage
-----
It's unlikely that this will work for anyone but me, but the basic usage is:
```sh
composer install
# Clone top 2k packages into repos/ (~20GB):
php download.php 0 2000
# Specify the list of repositories to test:
ls -d repos/*/* > repo_list
# Run using PHP build in ~/php/php-src-asan:
runner/run.sh ~/php/php-src-asan repo_list > log
# Look for interesting parts of the log:
php analyze.php log
```