]> granicus.if.org Git - php/commitdiff
fix tests
authorNuno Lopes <nlopess@php.net>
Thu, 27 Dec 2007 16:05:00 +0000 (16:05 +0000)
committerNuno Lopes <nlopess@php.net>
Thu, 27 Dec 2007 16:05:00 +0000 (16:05 +0000)
ext/gmp/tests/011.phpt
ext/gmp/tests/026.phpt

index b413aa962406d9bf485a49e986b3d7a547e62ea7..a42c1b6b4e2aaf6452c32e312da982555895b7fc 100644 (file)
@@ -39,7 +39,7 @@ var_dump(gmp_strval($r));
 echo "Done\n";
 ?>
 --EXPECTF--    
-Warning: gmp_divexact() expects exactly 2 parameters, 0 given in %s on line %d
+Warning: gmp_divexact() expects exactly 2 parameters, 3 given in %s on line %d
 NULL
 
 Warning: gmp_divexact() expects exactly 2 parameters, 0 given in %s on line %d
index e09766c8e0befe4be952a35f1d137a40e0ca464f..83e7910d1e6ec5538711ca9e83a103e522eac46b 100644 (file)
@@ -13,7 +13,7 @@ var_dump(gmp_cmp(1231222,0));
 var_dump(gmp_cmp(0,345355));
 
 $n = gmp_init("827278512385463739");
-var_dump(gmp_cmp(0,$n));
+var_dump(gmp_cmp(0,$n) < 0);
 $n1 = gmp_init("827278512385463739");
 var_dump(gmp_cmp($n1,$n));
 
@@ -31,7 +31,7 @@ int(-1)
 int(0)
 int(1)
 int(-1)
-int(-1)
+bool(true)
 int(0)
 
 Warning: gmp_cmp() expects exactly 2 parameters, 3 given in %s on line %d