xref: /PHP-7.2/Zend/tests/bug41026.phpt (revision 17ccbeec)
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--EXPECTF--
24Done
25
26Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0
27