Re: Declare minimum PHP version required?

From: Date: Mon, 03 Feb 2014 07:57:44 +0000
Subject: Re: Declare minimum PHP version required?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-72052@lists.php.net to get a copy of this message
Hi! > The same thing can be done by version_compare() and die(), but it does not > make much sense executing script only to check PHP version and die, > especially for libraries. For library, it is preferred to fail when it is Why not? That's what PHP does - executing scripts. > included, not when it is executed. I wouldn't write version_compare() and I don't understand - what is the difference? In PHP including and executing is the same thing. I think version_compare works just fine. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#72052) next »