blob: 6cfa5e07f13784a456aaa1acb24692605fa8479f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Bug #53502 (strtotime with timezone memory leak)
--INI--
date.timezone=UTC
--FILE--
<?php
for ($i = 0; $i < 1000; $i++) {
strtotime('Monday 00:00 Europe/Paris'); // Memory leak
}
echo "Nothing, test only makes sense through valgrind.\n";
?>
--EXPECT--
Nothing, test only makes sense through valgrind.
|