tony2001 Fri May 4 22:32:30 2007 UTC
Modified files:
/php-src/ext/gmp/tests 011.phpt
Log:
check GMP version and skip the test if it's <= 4.2.1
http://cvs.php.net/viewvc.cgi/php-src/ext/gmp/tests/011.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/gmp/tests/011.phpt
diff -u php-src/ext/gmp/tests/011.phpt:1.2 php-src/ext/gmp/tests/011.phpt:1.3
--- php-src/ext/gmp/tests/011.phpt:1.2 Fri Apr 27 11:43:24 2007
+++ php-src/ext/gmp/tests/011.phpt Fri May 4 22:32:30 2007
@@ -1,5 +1,11 @@
--TEST--
-gmp_divexact() tests (OK to fail with GMP =< 4.2.1)
+gmp_divexact() tests
+--SKIPIF--
+<?php
+if (!defined('GMP_VERSION') || version_compare("4.2.1", GMP_VERSION, ">=")) {
+ die("skip your GMP is too old and will crash");
+}
+?>
--FILE--
<?php
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php