PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [9cce8fc6ef]

Artifact 9cce8fc6ef3afb5f85884b0737f19031ffedbaae:

  • File doc/tests1all/bcmath.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 291)

--TEST--
bcmath
--FILE--
<?php

bcscale(50);
echo "1/17=";
echo bcdiv("1", "17");
echo "\n";

echo "2^55%77777=";
echo bcpowmod(2, 55, 77777);
echo "\n";

?>
--EXPECT--
1/17=0.05882352941176470588235294117647058823529411764705
2^55%77777=0.00000000000000000000000000000000000000000000000000