1--TEST--
2bcpowmod() must return 0 when mod is +1 or -1
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7var_dump(bcpowmod(5, 0, 1));
8var_dump(bcpowmod(5, 0, 1, 3));
9var_dump(bcpowmod(5, 0, -1));
10var_dump(bcpowmod(5, 0, -1, 3));
11?>
12--EXPECT--
13string(1) "0"
14string(5) "0.000"
15string(1) "0"
16string(5) "0.000"
17