mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
16 lines
244 B
PHP
16 lines
244 B
PHP
--TEST--
|
|
Bug #49700 (memory leaks in php_date.c if garbage collector is enabled)
|
|
--INI--
|
|
date.timezone=GMT
|
|
--FILE--
|
|
<?php
|
|
gc_enable();
|
|
$objs = array();
|
|
$objs[1] = new DateTime();
|
|
gc_collect_cycles();
|
|
unset($objs);
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|