Add reproducer

This commit is contained in:
Daniil Gentili 2023-11-14 18:00:37 +01:00
parent f51ada0b1f
commit 3b66d7f8dd
3 changed files with 53 additions and 4 deletions

View File

@ -9,11 +9,14 @@ Edit the branch in `Dockerfile:33`
Tested on fa218eab4a9b5304afb871a4405546068cb65008
1. Composer: Fixed
2. Psalm: always fails
2. Psalm: Fixed
3. MadelineProto: Fixed
4. Infection (patched): Fixed
5. Psalm (unit): ?
6. php-parser (unit): Fixed
7. Psalm (master, unit): always fails
8. Psalm (patched master, unit): always fails
9. Composer: always fails
7. Psalm (master, unit): Fixed
8. Psalm (patched master, unit): Fixed
9. Composer: Fixed
10. Amphp: Always fails
11. Reactphp: Always fails
12. Amphp: Always fails

23
bugs/11_react.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash -e
composer update
standalone=$PWD/bugs/wrap.php
refactor=$PWD/refactor.php
cd /tmp
rm -rf promise
git clone https://github.com/reactphp/promise
cd promise
cp $standalone .
composer i --ignore-platform-reqs
sleep 3
docker run -v $PWD:/app --rm --privileged -it asan_tests bash -c 'export USE_ZEND_ALLOC=1; /usr/bin/php -d opcache.jit=0 --repeat 2 -f /app/wrap.php /app/vendor/bin/phpunit'
echo "OK, no bugs!"

23
bugs/12_amp.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash -e
composer update
standalone=$PWD/bugs/wrap.php
refactor=$PWD/refactor.php
cd /tmp
rm -rf file
git clone https://github.com/amphp/file
cd file
cp $standalone .
composer i --ignore-platform-reqs
sleep 3
docker run -v $PWD:/app --rm --privileged -it asan_tests bash -c 'export USE_ZEND_ALLOC=1; /usr/bin/php -d opcache.jit=0 --repeat 2 -f /app/wrap.php /app/vendor/bin/phpunit'
echo "OK, no bugs!"