xref: /PHP-7.4/ext/bcmath/tests/bcpow_error1.phpt (revision fd73a54c)
1--TEST--
2bcpow() does not support non-integral exponents
3--SKIPIF--
4<?php
5if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6?>
7--FILE--
8<?php
9var_dump(bcpow('1', '1.1', 2));
10?>
11===DONE===
12--EXPECTF--
13Warning: bcpow(): non-zero scale in exponent in %s on line %d
14string(4) "1.00"
15===DONE===
16