1--TEST--
2GH-14643: Segfault on empty user function.
3--FILE--
4<?php
5class Logger {
6	public function __construct() {
7		register_shutdown_function(function () {
8			$this->flush();
9			register_shutdown_function([$this, 'flush'], true);
10		});
11	}
12	public function flush($final = false) {
13	}
14}
15while (true) {
16	$a = new Logger();
17}
18?>
19--EXPECTF--
20Fatal error: Allowed memory size of %d bytes exhausted %s
21
22Fatal error: Allowed memory size of %d bytes exhausted %s
23