note 103101 deleted from function.bccomp by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Mar 2011 16:20:35 +0000 |
| Subject: | note 103101 deleted from function.bccomp by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178211@lists.php.net to get a copy of this message | ||
Note Submitter: dcz at phpbb-seo dot com
----
About the -0/+0 compare, the "issue" seems fixed in the versions I tested :
PHP Version 5.2.6-2ubuntu4.6 & PHP Version 5.3.1 XPsp3
<?php
echo bccomp('-0', '0'); // (int) 0
echo bccomp('0', '-0'); // (int) 0
echo bccomp('-0', '+0'); // (int) 0
echo bccomp('+0', '-0'); // (int) 0
echo bccomp('+0', '0'); // (int) 0
echo bccomp('0', '+0'); // (int) 0
?>