/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/bug78436.phpt
46 строк
840 B
Nikita Popov
Fixed bug #78436
23 авг 2019, 16:27
23 авг 2019, 16:27
13e9222
Код
Авторство
О чём код?
--TEST-- Bug #78436: Missing addref in SplPriorityQueue EXTR_BOTH mode --FILE-- <?php $pq = new SplPriorityQueue(); $pq->insert(new stdClass, 1); var_dump($pq); var_dump($pq); ?> --EXPECT-- object(SplPriorityQueue)#1 (3) { ["flags":"SplPriorityQueue":private]=> int(1) ["isCorrupted":"SplPriorityQueue":private]=> bool(false) ["heap":"SplPriorityQueue":private]=> array(1) { [0]=> array(2) { ["data"]=> object(stdClass)#2 (0) { } ["priority"]=> int(1) } } } object(SplPriorityQueue)#1 (3) { ["flags":"SplPriorityQueue":private]=> int(1) ["isCorrupted":"SplPriorityQueue":private]=> bool(false) ["heap":"SplPriorityQueue":private]=> array(1) { [0]=> array(2) { ["data"]=> object(stdClass)#2 (0) { } ["priority"]=> int(1) } } }