![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #49700 (memory leaks in php_date.c if garbage collector is enabled) 3: --INI-- 4: date.timezone=GMT 5: --FILE-- 6: <?php 7: gc_enable(); 8: $objs = array(); 9: $objs[1] = new DateTime(); 10: gc_collect_cycles(); 11: unset($objs); 12: echo "OK\n"; 13: ?> 14: --EXPECT-- 15: OK