mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
21 lines
299 B
PHP
21 lines
299 B
PHP
--TEST--
|
|
Bug #69579 (Internal trait double-free)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!PHP_DEBUG) die("skip only run in debug version");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class Bar{
|
|
use _ZendTestTrait;
|
|
}
|
|
|
|
$bar = new Bar();
|
|
var_dump($bar->testMethod());
|
|
// destruction causes a double-free and explodes
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|