diff options
Diffstat (limited to 'ext/gmp/tests/002.phpt')
-rw-r--r-- | ext/gmp/tests/002.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gmp/tests/002.phpt b/ext/gmp/tests/002.phpt index ac2a7a5494..0fbc864ec6 100644 --- a/ext/gmp/tests/002.phpt +++ b/ext/gmp/tests/002.phpt @@ -3,9 +3,9 @@ GMP functionality test - factorial --SKIPIF-- <?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- -<?php +<?php function fact($x) { - if($x <= 1) + if($x <= 1) return 1; else return gmp_mul($x,fact($x-1)); |