note 46094 added to function.version-compare

From: Date: Wed, 29 Sep 2004 09:28:07 +0000
Subject: note 46094 added to function.version-compare
Groups: php.notes 
Request: Send a blank email to php-notes+get-77554@lists.php.net to get a copy of this message
If you're careful, this function actualy works quite nicely for comparing version numbers from programs other than PHP itself. I've used it to compare MySQL version numbers. The only issue is that version_compare doesn't recognize the 'gamma' addition that mysql uses as being later than 'alpha' or 'beta', because the latter two are treated specially. If you keep this in mind though, you should have no problems. ---- Manual Page -- http://www.php.net/manual/en/function.version-compare.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46094 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46094&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46094&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77554) next »