xref: /PHP-Parser/test_old/run-php-src.sh (revision 84813dc1)
1VERSION=$1
2if [[ ! -f php-$VERSION.tar.gz ]]; then
3    wget -q https://github.com/php/php-src/archive/php-$VERSION.tar.gz
4fi
5rm -rf ./data/php-src
6mkdir -p ./data/php-src
7tar -xzf ./php-$VERSION.tar.gz -C ./data/php-src --strip-components=1
8php test_old/run.php --verbose --no-progress --php-version=$VERSION PHP ./data/php-src
9