summaryrefslogtreecommitdiff
path: root/Zend/tests/bug74084.phpt
blob: 36239438c6896f17594c856f593f1a56be46a328 (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
34
35
36
37
--TEST--
Bug #74084 (Out of bound read - zend_mm_alloc_small)
--INI--
error_reporting=0
--FILE--
<?php
$$A += $$B['a'] = &$$C;
unset($$A);
try {
    $$A -= $$B['a'] = &$$C;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
unset($$A);
try {
    $$A *= $$B['a'] = &$$C;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
unset($$A);
try {
    $$A /= $$B['a'] = &$$C;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
unset($$A);
try {
    $$A **= $$B['a'] = &$$C;
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Unsupported operand types: array - array
Unsupported operand types: array * array
Unsupported operand types: array / array
Unsupported operand types: array ** array