summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70215.phpt
blob: 76a96722251a059f7a8322109030208810eff21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #70215 (Segfault when invoke is static)
--FILE--
<?php

class A {
    public static function __invoke() {
        echo __CLASS__;
    }
}

class B extends A { }

$b = new B;

$b();

?>
--EXPECTF--
Warning: The magic method A::__invoke() must have public visibility and cannot be static in %s on line %d
A