summaryrefslogtreecommitdiff
path: root/ext/gmp/tests/005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gmp/tests/005.phpt')
-rw-r--r--ext/gmp/tests/005.phpt20
1 files changed, 16 insertions, 4 deletions
diff --git a/ext/gmp/tests/005.phpt b/ext/gmp/tests/005.phpt
index 482e7217ad..806b5e6e34 100644
--- a/ext/gmp/tests/005.phpt
+++ b/ext/gmp/tests/005.phpt
@@ -28,19 +28,25 @@ var_dump(gmp_strval($g, 10));
var_dump(gmp_strval(array(1,2), array(1,2)));
var_dump(gmp_strval(new stdclass, new stdclass));
+var_dump(gmp_strval(array(1,2)));
+var_dump(gmp_strval(new stdclass));
echo "Done\n";
?>
--EXPECTF--
-Warning: Wrong parameter count for gmp_strval() in %s on line %d
+Warning: gmp_strval() expects at least 1 parameter, 0 given in %s on line %d
NULL
bool(false)
-bool(false)
-bool(false)
-Warning: gmp_strval(): Bad base for conversion: 0 in %s on line %d
+Warning: gmp_strval() expects parameter 2 to be long, string given in %s on line %d
+NULL
+
+Warning: gmp_strval(): Bad base for conversion: -1 in %s on line %d
bool(false)
+Warning: gmp_strval() expects parameter 2 to be long, string given in %s on line %d
+NULL
+
Warning: gmp_strval(): supplied resource is not a valid GMP integer resource in %s on line %d
bool(false)
string(7) "9765456"
@@ -60,6 +66,12 @@ Warning: gmp_strval(): Bad base for conversion: 100000 in %s on line %d
bool(false)
string(8) "-3373333"
+Warning: gmp_strval() expects parameter 2 to be long, array given in %s on line %d
+NULL
+
+Warning: gmp_strval() expects parameter 2 to be long, object given in %s on line %d
+NULL
+
Warning: gmp_strval(): Unable to convert variable to GMP - wrong type in %s on line %d
bool(false)