Re: static constructor

From: Date: Thu, 12 Mar 2015 11:16:42 +0000
Subject: Re: static constructor
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-84628@lists.php.net to get a copy of this message
Hello Johannes, class Foo {
    private static function __static() {
        throw new Exception("boom");
    }
} while(true) {
    try {
        $foo = new Foo;
    } catch (Exception ex) {}
} Would this code be valid?

« previous php.internals (#84628) next »