note 14725 rejected and deleted from function.phpversion.php by alindeman

From: Date: Sun, 12 Aug 2001 16:12:47 +0000
Subject: note 14725 rejected and deleted from function.phpversion.php by alindeman
Groups: php.notes 
Request: Send a blank email to php-notes+get-16604@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"; }

« previous php.notes (#16604) next »