summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug53502.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug53502.phpt')
-rw-r--r--ext/date/tests/bug53502.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/date/tests/bug53502.phpt b/ext/date/tests/bug53502.phpt
new file mode 100644
index 000000000..6cfa5e07f
--- /dev/null
+++ b/ext/date/tests/bug53502.phpt
@@ -0,0 +1,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.