]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Fri, 16 Jul 2004 02:03:26 +0000 (02:03 +0000)
committerSVN Migration <svn@php.net>
Fri, 16 Jul 2004 02:03:26 +0000 (02:03 +0000)
tests/lang/bug28800.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug28800.phpt b/tests/lang/bug28800.phpt
new file mode 100644 (file)
index 0000000..f81ad7f
--- /dev/null
@@ -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
+