mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 23:28:15 +01:00
84813dc1e4
When doing local testing, chances are that the archive is already present.
9 lines
328 B
Bash
Executable File
9 lines
328 B
Bash
Executable File
VERSION=$1
|
|
if [[ ! -f php-$VERSION.tar.gz ]]; then
|
|
wget -q https://github.com/php/php-src/archive/php-$VERSION.tar.gz
|
|
fi
|
|
rm -rf ./data/php-src
|
|
mkdir -p ./data/php-src
|
|
tar -xzf ./php-$VERSION.tar.gz -C ./data/php-src --strip-components=1
|
|
php test_old/run.php --verbose --no-progress --php-version=$VERSION PHP ./data/php-src
|