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"); /* never reached */ 16 } 17} 18 19try_class::main (); 20 21echo "Done\n"; 22?> 23--EXPECT-- 24Done 25 26Fatal error: Registered shutdown function self::on_shutdown() cannot be called, function does not exist in Unknown on line 0 27