mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
19 lines
249 B
PHP
19 lines
249 B
PHP
--TEST--
|
|
Bug #69579 (Internal trait double-free)
|
|
--EXTENSIONS--
|
|
zend_test
|
|
--FILE--
|
|
<?php
|
|
|
|
class Bar{
|
|
use _ZendTestTrait;
|
|
}
|
|
|
|
$bar = new Bar();
|
|
var_dump($bar->testMethod());
|
|
// destruction causes a double-free and explodes
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|