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-- 20Warning: The magic method __invoke() must have public visibility and cannot be static in %s on line %d 21A 22