1--TEST-- 2Bug #41026 (segfault when calling "self::method()" in shutdown functions) 3--FILE-- 4<?php 5 6class try_class 7{ 8 static public function main () 9 { 10 register_shutdown_function (array ("self", "on_shutdown")); 11 } 12 13 static public function on_shutdown () 14 { 15 printf ("CHECKPOINT\n"); 16 } 17} 18 19try_class::main (); 20 21echo "Done\n"; 22?> 23--EXPECTF-- 24Deprecated: Use of "self" in callables is deprecated in %s on line %d 25Done 26CHECKPOINT 27