Select Git revision
rollout_default.php
detect-php 628 B
# ----------------------------------------------------------------------------
#
# EOL - End of life detection - Warn before reaching end of life
#
# detect version of PHP
#
# ----------------------------------------------------------------------------
# 2020-02-25 v1.0 <axel.hahn@iml.unibe.ch>
# ----------------------------------------------------------------------------
# ----- example output
# php --version
# PHP 7.4.2 (cli) (built: Jan 21 2020 18:16:58) ( NTS )
# Copyright (c) The PHP Group
# Zend Engine v3.4.0, Copyright (c) Zend Technologies
php --version | head -1 | cut -f 2 -d " " | cut -f 1,2 -d "."