Skip to content

Commit

Permalink
Update PHP Composer checksum (#566)
Browse files Browse the repository at this point in the history
Yes, they made a new release. We should probably revisit our pinning
approach with PHP Composer...
  • Loading branch information
ilammy authored and vixentael committed Dec 12, 2019
1 parent 8c808a1 commit a3abce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpthemis/composer-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "echo 'Installed hash = '; echo hash_file('SHA384', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1')
php -r "if (hash_file('SHA384', 'composer-setup.php') === '106d3d32cc30011325228b9272424c1941ad75207cb5244bee161e5f9906b0edf07ab2a733e8a1c945173eb9b1966197')
{ echo 'Valid signature, continue installation'; }
else
{ echo '\nERROR: Invalid installer signature, probably installer was updated, fix in /tests/phpthemis/composer-setup.sh'; unlink('composer-setup.php'); exit(1); }
Expand All @@ -12,4 +12,4 @@ echo PHP_EOL;"
echo "If installation fails, means installer signature is invalid"
php composer-setup.php
RESULT=$?
php -r "unlink('composer-setup.php');"
php -r "unlink('composer-setup.php');"

0 comments on commit a3abce4

Please sign in to comment.