summaryrefslogtreecommitdiff
path: root/Zend/tests/add_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/add_005.phpt')
-rw-r--r--Zend/tests/add_005.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/add_005.phpt b/Zend/tests/add_005.phpt
new file mode 100644
index 0000000000..7e9bc25d8f
--- /dev/null
+++ b/Zend/tests/add_005.phpt
@@ -0,0 +1,22 @@
+--TEST--
+adding integers to doubles
+--INI--
+precision=14
+--FILE--
+<?php
+
+$i = 75636;
+$d = 2834681123.123123;
+
+$c = $i + $d;
+var_dump($c);
+
+$c = $d + $i;
+var_dump($c);
+
+echo "Done\n";
+?>
+--EXPECTF--
+float(2834756759.1231)
+float(2834756759.1231)
+Done