blob: 182e22297379b70adafd5f41be1a2142218ef6d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Bug #31177 (memory corruption because of incorrect refcounting)
--FILE--
<?php
class foo {
function __construct($n=0) {
if($n) throw new Exception("new");
}
}
$x = new foo();
try {
$y=$x->__construct(1);
} catch (Exception $e) {
var_dump($x);
}
?>
--EXPECT--
object(foo)#1 (0) {
}
|