summaryrefslogtreecommitdiff
path: root/tests/lang/bug30726.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug30726.phpt')
-rw-r--r--tests/lang/bug30726.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lang/bug30726.phpt b/tests/lang/bug30726.phpt
new file mode 100644
index 0000000..79aeff7
--- /dev/null
+++ b/tests/lang/bug30726.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Bug #30726 (-.1 like numbers are not being handled correctly)
+--FILE--
+<?php
+echo (int) is_float('-.1' * 2), "\n";
+?>
+--EXPECT--
+1