1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00
Files
archived-php-src/Zend/tests/pow_array_leak.phpt

34 lines
395 B
PHP

--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(1) {
[0]=>
int(0)
}
Unsupported operand types
array(1) {
[0]=>
int(0)
}