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