note 14725 added to function.phpversion.php

From: Date: Sun, 12 Aug 2001 12:41:58 +0000
Subject: note 14725 added to function.phpversion.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16595@lists.php.net to get a copy of this message
The above test fails if phpversion() returns 4.1.x with x < n or something similar (in a future version), that is newer than the specified 4.0.n. It should be made in this manner: if ( ereg( "[4-9]\.[0-9]\.[n-9].*", phpversion() ) or ereg( "[4-9]\.[1-9]\.[0-9].*", phpversion() ) ) { echo "ok"; } http://www.php.net/manual/en/function.phpversion.php

« previous php.notes (#16595) next »