1--TEST--
2Check that arguments are freed when a call to an abstract method throws
3--FILE--
4<?php
5
6abstract class Test {
7    abstract static function method();
8}
9
10try {
11    Test::method(new stdClass);
12} catch (Error $e) {
13    echo $e->getMessage(), "\n";
14}
15
16$ret = new stdClass;
17try {
18    $ret = Test::method(new stdClass);
19} catch (Error $e) {
20    echo $e->getMessage(), "\n";
21}
22
23?>
24--EXPECT--
25Cannot call abstract method Test::method()
26Cannot call abstract method Test::method()
27