]> granicus.if.org Git - php/commitdiff
Skip new OpenSSL ECC tests on 32bit
authorJakub Zelenka <bukka@php.net>
Tue, 28 Jun 2016 19:39:31 +0000 (20:39 +0100)
committerJakub Zelenka <bukka@php.net>
Tue, 28 Jun 2016 19:39:31 +0000 (20:39 +0100)
There has been reported that they fail on 32bit so
they will be skipped till the issue is investigated.

ext/openssl/tests/029.phpt
ext/openssl/tests/ecc.phpt

index cf43e0e5387a7d202378488d8df67d006ccdb8ee..277721d6ba227a716ad3dbe524ebeca12b3ad330 100644 (file)
@@ -4,6 +4,7 @@ openssl_pkey_new() with EC key
 <?php
 if (!extension_loaded("openssl")) die("skip");
 if (!defined("OPENSSL_KEYTYPE_EC")) die("skip no EC available");
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
 ?>
 --FILE--
 <?php
index 5df01304f00c3117a3c6dc9bf03e22fcf58e6e70..a3924d3d50fce59b008cb627283398754e0bfec9 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 openssl_*() with OPENSSL_KEYTYPE_EC
 --SKIPIF--
-<?php if (!extension_loaded("openssl") && !defined("OPENSSL_KEYTYPE_EC")) print "skip"; ?>
+<?php
+if (!extension_loaded("openssl") && !defined("OPENSSL_KEYTYPE_EC")) print "skip";
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
 --FILE--
 <?php
 $args = array(