mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
16 lines
244 B
Plaintext
16 lines
244 B
Plaintext
|
--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
|