|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-24 09:33 UTC] sjoerd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Description: ------------ gnu_cmp doesn't work with decimal strings Reproduce code: --------------- --- From manual page: function.gmp-cmp --- $integers = gmp_cmp('2','5'); $floats = gmp_cmp('2.5','5'); var_dump($integers,$floats); Expected result: ---------------- both should return -1 Actual result: -------------- int(-1) bool(false)