xref: /PHP-8.1/Zend/tests/traits/bug69579.phpt (revision 74859783)
1--TEST--
2Bug #69579 (Internal trait double-free)
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8class Bar{
9  use _ZendTestTrait;
10}
11
12$bar = new Bar();
13var_dump($bar->testMethod());
14// destruction causes a double-free and explodes
15
16?>
17--EXPECT--
18bool(true)
19