summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-07-16 02:03:25 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-07-16 02:03:25 +0000
commit6dd2613d7ba7d2a8e34a99e6bfeda44ddb540323 (patch)
treeb5b901863355656475902e6053389fc4dcff0f71 /tests/lang
parent10d903343f3e62236ce7181521c56f3bfae49253 (diff)
downloadphp-git-6dd2613d7ba7d2a8e34a99e6bfeda44ddb540323.tar.gz
MFB: Fixed bug #28800 (strings beginning with "inf" improperly converted).
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug28800.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lang/bug28800.phpt b/tests/lang/bug28800.phpt
new file mode 100644
index 0000000000..f81ad7fec9
--- /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
+