1--TEST--
2Bug #80290: Double free when ASSERT_CALLBACK is used with a dynamic message
3--FILE--
4<?php
5
6assert_options(ASSERT_CALLBACK, function($file, $line, $unused, $message) {
7    var_dump($message);
8});
9
10$x = 'x';
11assert(false, 'Dynamic message: ' . $x);
12
13?>
14--EXPECTF--
15string(18) "Dynamic message: x"
16
17Fatal error: Uncaught AssertionError: Dynamic message: x in %s:%d
18Stack trace:
19#0 %s(%d): assert(false, 'Dynamic message...')
20#1 {main}
21  thrown in %s on line %d
22