diff options
Diffstat (limited to 'tests/lang/bug28800.phpt')
-rw-r--r-- | tests/lang/bug28800.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lang/bug28800.phpt b/tests/lang/bug28800.phpt new file mode 100644 index 0000000..f81ad7f --- /dev/null +++ b/tests/lang/bug28800.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #28800 (Incorrect string to number conversion for strings starting with 'inf') +--FILE-- +<?php + $strings = array('into', 'info', 'inf', 'infinity', 'infin', 'inflammable'); + foreach ($strings as $v) { + echo ($v+0)."\n"; + } +?> +--EXPECT-- +0 +0 +0 +0 +0 +0 + |