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

detect-php

Blame
  • 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 "."