summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMagnus M��tt� <magnus@php.net>2005-01-18 09:56:31 +0000
committerMagnus M��tt� <magnus@php.net>2005-01-18 09:56:31 +0000
commit5c98efddae002a73b3e78fdb5368e405b365ae12 (patch)
treee8eb5ebc17ca20ec682012d0b7ea7dfe60f76783 /tests
parent30445fb661aea657d39171afa8a6eb61593c8c4b (diff)
downloadphp-git-5c98efddae002a73b3e78fdb5368e405b365ae12.tar.gz
Add test case for bug #30726.
Diffstat (limited to 'tests')
-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 0000000000..f979e9a697
--- /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);
+?>
+--EXPECT--
+1