1--TEST--
2pow() division by zero error
3--FILE--
4<?php
5
6function test() {
7    var_dump(pow(0, -0));
8    var_dump(pow(0.0, -0));
9    var_dump(pow(0, -0.0));
10    var_dump(pow(0.0, -0.0));
11    var_dump(pow(0, -0.01));
12    var_dump(pow(0.0, -0.01));
13    var_dump(pow(0, -1));
14    var_dump(pow(0.0, -1));
15    var_dump(pow(0, -1.1));
16    var_dump(pow(0.0, -1.1));
17
18    var_dump(0 ** -0);
19    var_dump(0.0 ** -0);
20    var_dump(0 ** -0.0);
21    var_dump(0.0 ** -0.0);
22    var_dump(0 ** -0.01);
23    var_dump(0.0 ** -0.01);
24    var_dump(0 ** -1);
25    var_dump(0.0 ** -1);
26    var_dump(0 ** -1.1);
27    var_dump(0.0 ** -1.1);
28}
29
30test();
31test();
32
33?>
34--EXPECTF--
35int(1)
36float(1)
37float(1)
38float(1)
39
40Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
41float(INF)
42
43Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
44float(INF)
45
46Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
47float(INF)
48
49Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
50float(INF)
51
52Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
53float(INF)
54
55Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
56float(INF)
57int(1)
58float(1)
59float(1)
60float(1)
61
62Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
63float(INF)
64
65Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
66float(INF)
67
68Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
69float(INF)
70
71Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
72float(INF)
73
74Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
75float(INF)
76
77Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
78float(INF)
79int(1)
80float(1)
81float(1)
82float(1)
83
84Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
85float(INF)
86
87Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
88float(INF)
89
90Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
91float(INF)
92
93Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
94float(INF)
95
96Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
97float(INF)
98
99Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
100float(INF)
101int(1)
102float(1)
103float(1)
104float(1)
105
106Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
107float(INF)
108
109Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
110float(INF)
111
112Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
113float(INF)
114
115Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
116float(INF)
117
118Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
119float(INF)
120
121Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
122float(INF)
123