note 59688 added to function.phpversion

From: Date: Tue, 13 Dec 2005 15:06:21 +0000
Subject: note 59688 added to function.phpversion
Groups: php.notes 
Request: Send a blank email to php-notes+get-100067@lists.php.net to get a copy of this message
I really don't understand why so many guys are making so many efforts to build functions (partly really odd ones) for comparing versions - especially in the context of the phpversion()-function - version_compare() offers best performance (or at least better than all of the given ones here) for comparing versions - and it also respects things like "dev" and "RC1". I don't think that a few bytes of code are really worth being encapsulated in a big odd function.. if that's what you want. ---- Manual Page -- http://www.php.net/manual/en/function.phpversion.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59688 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59688&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59688&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100067) next »