mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
cdaf35033d
By mentioning the operand types. We can do that now, as the original operand types now remain available. Closes GH-5330.
38 lines
715 B
PHP
38 lines
715 B
PHP
--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
|