--TEST-- BcMath\Number divmod() with scale --EXTENSIONS-- bcmath --FILE-- divmod($value2, $scale); if ($method_quot->compare($func_quot) !== 0) { echo "Quot is incorrect.\n"; var_dump($value1, $value2, $scale, $func_quot, $method_quot); } if ($method_rem->compare($func_rem) !== 0) { echo "Rem is incorrect.\n"; var_dump($value1, $value2, $scale, $func_rem, $method_rem); } } } } echo 'done!'; ?> --EXPECT-- done!