bcpow.phpt 257 B

12345678910111213141516
  1. --TEST--
  2. bcpow() function
  3. --SKIPIF--
  4. <?php if(!extension_loaded("bcmath")) print "skip"; ?>
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. echo bcpow("1", "2"),"\n";
  10. echo bcpow("-2", "5", 4),"\n";
  11. echo bcpow("2", "64"),"\n";
  12. ?>
  13. --EXPECT--
  14. 1
  15. -32
  16. 18446744073709551616