Skip to content
Snippets Groups Projects
Select Git revision
  • 9a4d05bb300867c9bfe145bf0aa134d4c4867e1d
  • master default protected
  • simple-task/7248-eol-check-add-node-22
  • 6877_check_iml_deployment
4 results

detect-php

Blame
  • user avatar
    Hahn Axel (hahn) authored
    6df364dc
    History
    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 "."