From f1eabb7a38429565b6d6a4280d34ccbd7e42d1bf Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 26 Oct 2023 13:55:01 +0200 Subject: [PATCH] Add new reproducer --- Dockerfile | 0 README.md | 1 + bugs/9_composer.json | 22 ++++++++++++++++++++++ bugs/9_composer.sh | 23 +++++++++++++++++++++++ build.sh | 4 ++++ composer.json | 0 composer.lock | 0 php.ini | 0 refactor.php | 0 9 files changed, 50 insertions(+) mode change 100644 => 100755 Dockerfile mode change 100644 => 100755 README.md create mode 100644 bugs/9_composer.json create mode 100755 bugs/9_composer.sh create mode 100755 build.sh mode change 100644 => 100755 composer.json mode change 100644 => 100755 composer.lock mode change 100644 => 100755 php.ini mode change 100644 => 100755 refactor.php diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index eb25cc4..77bcefc --- a/README.md +++ b/README.md @@ -16,3 +16,4 @@ Tested on fa218eab4a9b5304afb871a4405546068cb65008 6. php-parser (unit): always fails 7. Psalm (master, unit): always fails 8. Psalm (patched master, unit): always fails +9. Composer: always fails diff --git a/bugs/9_composer.json b/bugs/9_composer.json new file mode 100644 index 0000000..21a7623 --- /dev/null +++ b/bugs/9_composer.json @@ -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 + } + } +} \ No newline at end of file diff --git a/bugs/9_composer.sh b/bugs/9_composer.sh new file mode 100755 index 0000000..ed7fa09 --- /dev/null +++ b/bugs/9_composer.sh @@ -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!" \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d5d0778 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash -e + +docker build . -t asan_tests + diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 diff --git a/php.ini b/php.ini old mode 100644 new mode 100755 diff --git a/refactor.php b/refactor.php old mode 100644 new mode 100755