mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
74c4381806
* PHP-7.4: Fixed bug #79947
18 lines
277 B
PHP
18 lines
277 B
PHP
--TEST--
|
|
Bug #79947: Memory leak on invalid offset type in compound assignment
|
|
--FILE--
|
|
<?php
|
|
$array = [];
|
|
$key = [];
|
|
try {
|
|
$array[$key] += [$key];
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
var_dump($array);
|
|
?>
|
|
--EXPECT--
|
|
Illegal offset type
|
|
array(0) {
|
|
}
|