1--TEST--
2Static in new is not supported
3--FILE--
4<?php
5
6class Foo {
7    public static function singleton() {
8        static $x = new static;
9        return $x;
10    }
11}
12
13$x = Foo::singleton();
14$y = Foo::singleton();
15var_dump($x, $y);
16
17?>
18--EXPECT--
19object(Foo)#1 (0) {
20}
21object(Foo)#1 (0) {
22}
23