bug78878.phpt 333 B

1234567891011121314
  1. --TEST--
  2. Bug #78878 (Buffer underflow in bc_shift_addsub)
  3. --EXTENSIONS--
  4. bcmath
  5. --FILE--
  6. <?php
  7. try {
  8. print bcmul("\xB26483605105519922841849335928742092", bcpowmod(2, 65535, -4e-4));
  9. } catch (\ValueError $e) {
  10. echo $e->getMessage() . \PHP_EOL;
  11. }
  12. ?>
  13. --EXPECT--
  14. bcpowmod(): Argument #3 ($modulus) cannot have a fractional part