thekid          Sun Jul 11 12:57:12 2004 EDT

  Modified files:              
    /php-src/ext/sybase_ct/tests        test_types.phpt 
  Log:
  - Added simple test for float exceeding the float precision
  # See bug #29064
  
http://cvs.php.net/diff.php/php-src/ext/sybase_ct/tests/test_types.phpt?r1=1.3&r2=1.4&ty=u
Index: php-src/ext/sybase_ct/tests/test_types.phpt
diff -u php-src/ext/sybase_ct/tests/test_types.phpt:1.3 
php-src/ext/sybase_ct/tests/test_types.phpt:1.4
--- php-src/ext/sybase_ct/tests/test_types.phpt:1.3     Sun May 16 16:33:44 2004
+++ php-src/ext/sybase_ct/tests/test_types.phpt Sun Jul 11 12:57:12 2004
@@ -6,7 +6,7 @@
 <?php
 /* This file is part of PHP test framework for ext/sybase_ct
  *
- * $Id: test_types.phpt,v 1.3 2004/05/16 20:33:44 thekid Exp $ 
+ * $Id: test_types.phpt,v 1.4 2004/07/11 16:57:12 thekid Exp $ 
  */
 
   require('test.inc');
@@ -21,7 +21,8 @@
     '.(LONG_MIN - 1).' as "integer_min_exceed",
     '.(LONG_MAX).' as "integer_max",
     '.(LONG_MAX + 1).' as "integer_max_exceed",
-    1.0  as "float", 
+    1.0  as "float",
+    12345678901234567890123456789012.123456 as "large_float",
     $22.36 as "money",
     "Binford" as "string",
     convert(datetime, "2004-01-23") as "date",
@@ -40,7 +41,8 @@
     -%s as "integer_min_exceed",
     %s as "integer_max",
     %s as "integer_max_exceed",
-    1.0  as "float", 
+    1.0  as "float",
+    12345678901234567890123456789012.123456 as "large_float",
     $22.36 as "money",
     "Binford" as "string",
     convert(datetime, "2004-01-23") as "date",
@@ -65,6 +67,8 @@
     float(%s)
     ["float"]=>
     float(1)
+    ["large_float"]=>
+    string(39) "12345678901234567890123456789012.123456"
     ["money"]=>
     float(22.36)
     ["string"]=>

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to