bug53502.phpt 317 B

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