xref: /PHP-8.2/Zend/tests/bug70215.phpt (revision fbbcf82a)
1--TEST--
2Bug #70215 (Segfault when invoke is static)
3--FILE--
4<?php
5
6class A {
7    public static function __invoke() {
8        echo __CLASS__;
9    }
10}
11
12class B extends A { }
13
14$b = new B;
15
16$b();
17
18?>
19--EXPECTF--
20Fatal error: Method A::__invoke() cannot be static in %s on line %d
21