We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff13201 commit a929893Copy full SHA for a929893
Zend/tests/constexpr/new_arg_eval.phpt
@@ -15,6 +15,12 @@ function test(
15
}
16
test();
17
18
+// Check that nested new works as well.
19
+function test2($p = new C(new C(__FUNCTION__))) {
20
+ var_dump($p);
21
+}
22
+test2();
23
+
24
?>
25
--EXPECTF--
26
object(C)#1 (1) {
@@ -29,3 +35,10 @@ object(C)#3 (1) {
29
35
["x"]=>
30
36
string(%d) "%snew_arg_eval.php"
31
37
38
+object(C)#3 (1) {
39
+ ["x"]=>
40
+ object(C)#2 (1) {
41
42
+ string(5) "test2"
43
+ }
44
0 commit comments