Bug #17855 Updated: version_compare() to force to string, input params

From: Date: Wed, 19 Jun 2002 23:40:21 +0000
Subject: Bug #17855 Updated: version_compare() to force to string, input params
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11473@lists.php.net to get a copy of this message
ID: 17855 Updated by: sniper@php.net Reported By: cox@idecnet.com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux RH PHP Version: 4.2.1 New Comment: 0.9 != 0.90 And the function does require strings.. --Jani Previous Comments: ------------------------------------------------------------------------ [2002-06-19 19:28:04] cox@idecnet.com # phpcli -r "var_dump(version_compare(0.9, 0.90, 'eq'));" bool(true) # phpcli -r "var_dump(version_compare('0.9', '0.90', 'eq'));" bool(false) Would be nice if version_compare could force the input params to be strings instead of doing the comparation with int's. Sorry if I dream too much. -- Tomas V.V.Cox ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17855&edit=1

« previous php.bugs (#11473) next »