mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
17 lines
225 B
PHP
17 lines
225 B
PHP
--TEST--
|
|
bccomp() with non-integers
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--INI--
|
|
bcmath.scale=0
|
|
--FILE--
|
|
<?php
|
|
echo bccomp("2.2", "2.2", "2")."\n";
|
|
echo bccomp("2.32", "2.2", "2")."\n";
|
|
echo bccomp("2.29", "2.3", "2");
|
|
?>
|
|
--EXPECT--
|
|
0
|
|
1
|
|
-1
|