From a708246ae2b5534791827648353b76d4b31f85ab Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 13 Dec 2023 21:56:42 +0100 Subject: [PATCH] Add reproducer --- .gitignore | 2 ++ README.md | 9 ++++----- bugs/13_classmap.sh | 5 +++++ bugs/classmap_gen.php | 17 +++++++++++++++++ composer.lock | 12 ++++++------ 5 files changed, 34 insertions(+), 11 deletions(-) create mode 100755 bugs/13_classmap.sh create mode 100644 bugs/classmap_gen.php diff --git a/.gitignore b/.gitignore index 57872d0..a64998b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /vendor/ +/bugs/classmap.php + diff --git a/README.md b/README.md index e6b66af..cdfc923 100755 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ Edit the branch in `Dockerfile:33` ## Tests -Tested on fa218eab4a9b5304afb871a4405546068cb65008 - 1. Composer: Fixed 2. Psalm: Fixed 3. MadelineProto: Fixed @@ -17,6 +15,7 @@ Tested on fa218eab4a9b5304afb871a4405546068cb65008 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 +10. Amphp: Fixed +11. Reactphp: Fixed +12. Amphp: Fixed +13. Classmap: always fails diff --git a/bugs/13_classmap.sh b/bugs/13_classmap.sh new file mode 100755 index 0000000..164e1f3 --- /dev/null +++ b/bugs/13_classmap.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +php bugs/classmap_gen.php + +docker run -v $PWD:/app -w /app --rm --privileged -it asan_tests php /app/bugs/classmap.php diff --git a/bugs/classmap_gen.php b/bugs/classmap_gen.php new file mode 100644 index 0000000..5789eb9 --- /dev/null +++ b/bugs/classmap_gen.php @@ -0,0 +1,17 @@ + \$vendorDir . '$v',\n"; +} + +$f .= ");\n"; + +file_put_contents(__DIR__.'/classmap.php', $f); \ No newline at end of file diff --git a/composer.lock b/composer.lock index d4d4468..fa38174 100755 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "nikic/php-parser", - "version": "v4.17.1", + "version": "v4.18.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", "shasum": "" }, "require": { @@ -58,9 +58,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" }, - "time": "2023-08-13T19:53:39+00:00" + "time": "2023-12-10T21:03:43+00:00" } ], "packages-dev": [],