1--TEST--
2Freeing of function "name" when dynamic call fails
3--FILE--
4<?php
5
6try {
7    $bar = "bar";
8    ("foo" . $bar)();
9} catch (Error $e) {
10    echo $e->getMessage(), "\n";
11}
12try {
13    $bar = ["bar"];
14    (["foo"] + $bar)();
15} catch (Error $e) {
16    echo $e->getMessage(), "\n";
17}
18try {
19    (new stdClass)();
20} catch (Error $e) {
21    echo $e->getMessage(), "\n";
22}
23
24?>
25--EXPECT--
26Call to undefined function foobar()
27Function name must be a string
28Function name must be a string
29