blob: 06dce0ac6a2b6b70b724fdaf14380d103e22b9fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--TEST--
Memory leak on ** with result==op1 array
--FILE--
<?php
$x = [0];
try {
$x **= 1;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
var_dump($x);
$x = [0];
try {
$x **= $x;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
var_dump($x);
?>
--EXPECT--
Unsupported operand types: array ** int
array(1) {
[0]=>
int(0)
}
Unsupported operand types: array ** array
array(1) {
[0]=>
int(0)
}
|