Skip to content

Commit 64c6a66

Browse files
committed
add/update test
1 parent 52fe9b0 commit 64c6a66

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ext/gmp/tests/gh16368.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
Bug GH-16368: gmp_init on first argument as null.
3+
--EXTENSIONS--
4+
gmp
5+
--FILE--
6+
<?php
7+
gmp_init($inexistent);
8+
?>
9+
--EXPECTF--
10+
Warning: Undefined variable $inexistent in %s on line %d
11+
12+
Deprecated: gmp_init(): Passing null to parameter #1 ($num) of type string|int is deprecated in %s on line %d

ext/gmp/tests/gmp_strict_types.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ object(GMP)#2 (1) {
5353
gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, float given
5454
gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given
5555
gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, bool given
56-
gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, null given
56+
Number must be of type GMP|string|int, null given
5757
gmp_abs(): Argument #1 ($num) must be of type GMP|string|int, array given

0 commit comments

Comments
 (0)