|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-19 19:40 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 18 12:00:01 2026 UTC |
# 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