<?php

// This file needs to parse without error in PHP < 5.3

if ( 'cli' !== PHP_SAPI ) {
	echo "Only CLI access.\n";
	die( -1 );
}

if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
	printf( "Error: EE requires PHP %s or newer. You are running version %s.\n", '5.3.0', PHP_VERSION );
	die( -1 );
}

define( 'EE_ROOT', dirname( __DIR__ ) );

include_once EE_ROOT . '/php/init-ee.php';


<?php

// This file needs to parse without error in PHP < 7.0

if ( 'cli' !== PHP_SAPI ) {
	echo "Only CLI access.\n";
	die( -1 );
}

if ( version_compare( PHP_VERSION, '7.0', '<' ) ) {
	printf( "Error: EE requires PHP %s or newer. You are running version %s.\n", '7.0', PHP_VERSION );
	die( -1 );
}

define( 'EE_ROOT', dirname( __DIR__ ) );

include_once EE_ROOT . '/php/init-ee.php';


Update php version check at start
Update php version check at start

Signed-off-by: Riddhesh Sanghvi <f8c90b0b72a59c76b108f89842786e39e7dc3e58@gmail.com>
