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-- 15Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 16 17Deprecated: Function assert_options() is deprecated in %s on line %d 18string(18) "Dynamic message: x" 19 20Fatal error: Uncaught AssertionError: Dynamic message: x in %s:%d 21Stack trace: 22#0 %s(%d): assert(false, 'Dynamic message...') 23#1 {main} 24 thrown in %s on line %d 25