1--TEST--
2bcpow() negative power of zero
3--EXTENSIONS--
4bcmath
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9$exponents = ["-15", "-1", "-9"];
10$baseNumbers = ['0', '-0'];
11
12foreach ($baseNumbers as $baseNumber) {
13    foreach ($exponents as $exponent) {
14        try {
15            echo bcpow($baseNumber, $exponent), "\n";
16        } catch (Error $e) {
17            echo $e->getMessage(), "\n";
18        }
19    }
20}
21
22?>
23--EXPECT--
24Negative power of zero
25Negative power of zero
26Negative power of zero
27Negative power of zero
28Negative power of zero
29Negative power of zero
30