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