Add new reproducer

This commit is contained in:
Daniil Gentili 2023-10-26 13:55:01 +02:00
parent b4780afc13
commit f1eabb7a38
9 changed files with 50 additions and 0 deletions

0
Dockerfile Normal file → Executable file
View File

1
README.md Normal file → Executable file
View File

@ -16,3 +16,4 @@ Tested on fa218eab4a9b5304afb871a4405546068cb65008
6. php-parser (unit): always fails 6. php-parser (unit): always fails
7. Psalm (master, unit): always fails 7. Psalm (master, unit): always fails
8. Psalm (patched master, unit): always fails 8. Psalm (patched master, unit): always fails
9. Composer: always fails

22
bugs/9_composer.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "test/testovich",
"description": "test",
"type": "library",
"license": "proprietary",
"autoload": {
"psr-4": {
"Test\\Http\\": "src/"
}
},
"require": {
"php": ">=8.0",
"ext-json": "*",
"phpoffice/phpspreadsheet": "^1.9.0"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

23
bugs/9_composer.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash -e
standalone=$PWD/bugs/wrap.php
c=$PWD/bugs/9_composer.json
cd /tmp
mkdir -p test
cd test
mkdir -p src
docker run -v $PWD:/app --rm --privileged -it asan_tests rm -rf vendor composer.lock
cp $standalone .
cp $c composer.json
echo "About to run composer"
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php --repeat 2 -f /app/wrap.php /usr/bin/composer update
echo "OK, no bugs!"

4
build.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash -e
docker build . -t asan_tests

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

0
php.ini Normal file → Executable file
View File

0
refactor.php Normal file → Executable file
View File