note 17226 deleted from function.phpversion by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 19:56:50 +0000 |
| Subject: | note 17226 deleted from function.phpversion by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23187@lists.php.net to get a copy of this message | ||
The above also fails for the upcoming PHP 4.1.x versions. A working alternative is:
// check if version is above 4.0.n
if (ereg( "[4-9]\.[0-9]\.[n-9].*", phpversion() ) || ereg(
"[4-9]\.[1-9]\.[0-9].*", phpversion() ) { }