Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/gc_017.phpt |
--TEST-- GC 017: GC and destructors with unset --INI-- zend.enable_gc=1 --FILE-- <?php class Node { public $name; public $children; public $parent; function __construct($name) { $this->name = $name; $this->parent = null; } function insert($node) { $node->parent = $this; $this->children[] = $node; } function __destruct() { var_dump($this->name); unset($this->name); unset($this->children); unset($this->parent); } } $a = new Node('A'); $b = new Node('B'); $c = new Node('C'); $a->insert($b); $a->insert($c); unset($a); unset($b); unset($c); var_dump(gc_collect_cycles() >= 7); echo "ok\n" ?> --EXPECTF-- string(1) "%s" string(1) "%s" string(1) "%s" bool(true) ok
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare