summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug43960.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug43960.phpt')
-rw-r--r--ext/date/tests/bug43960.phpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/date/tests/bug43960.phpt b/ext/date/tests/bug43960.phpt
new file mode 100644
index 0000000..c33dff2
--- /dev/null
+++ b/ext/date/tests/bug43960.phpt
@@ -0,0 +1,9 @@
+--TEST--
+Bug #43960 (strtotime() returns timestamp in the future when given a bogus string)
+--FILE--
+<?php
+date_default_timezone_set('UTC');
+var_dump(strtotime('i like to eat slices at work'));
+?>
+--EXPECT--
+bool(false)