]> granicus.if.org Git - php/commitdiff
fix test for linux64 - choosing smaller float values
authorRaghubansh Kumar <kraghuba@php.net>
Wed, 14 Nov 2007 16:31:45 +0000 (16:31 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Wed, 14 Nov 2007 16:31:45 +0000 (16:31 +0000)
ext/standard/tests/strings/strcspn_variation3.phpt
ext/standard/tests/strings/strspn_variation3.phpt
ext/standard/tests/strings/strspn_variation4.phpt

index f64cad378886a85568e1e115d5576b3a1db6e703..8b1923efda37dee03ba397c99eb641e07b4b573b 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -109,11 +109,11 @@ int(0)
 int(0)
 int(0)
 
--- Iteration with start value as "101234567000" --
-int(0)
-int(0)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(0)
 int(0)
 
@@ -123,7 +123,7 @@ int(0)
 
 -- Iteration with start value as "Array" --
 
-Warning: strcspn() expects parameter 3 to be long, array given in %s on line 89
+Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d
 NULL
 
 Warning: strcspn() expects parameter 3 to be long, array given in %s on line %d
index 3701cde1877de21babee86d1b7ac62480dd4b2a2..3195220dea57ff09b9c371852c796745ca5da91c 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -109,11 +109,11 @@ int(0)
 int(2)
 int(2)
 
--- Iteration with start value as "101234567000" --
-int(2)
-int(2)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(2)
 int(2)
 
index 5bd3894414ac4bc4bd9ef21ef8c7607c58af70d5..87dceac3b8b9e8545e5d458b6f7b5b6b4f20338a 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -106,10 +106,10 @@ int(2)
 -- Iteration with len value as "-10.5" --
 int(0)
 
--- Iteration with len value as "101234567000" --
-int(0)
+-- Iteration with len value as "1012345670" --
+int(2)
 
--- Iteration with len value as "1.07654321E-9" --
+-- Iteration with len value as "1.07654321E-7" --
 int(0)
 
 -- Iteration with len value as "0.5" --