]> granicus.if.org Git - php/commitdiff
- skip if openssl is too old
authorPierre Joye <pajoye@php.net>
Mon, 28 May 2007 13:48:36 +0000 (13:48 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 28 May 2007 13:48:36 +0000 (13:48 +0000)
- MFB test bug41353.phpt

ext/openssl/tests/bug36732.phpt
ext/openssl/tests/bug41353.phpt [new file with mode: 0644]

index c7bb8abc535cb32a85126b8b57144589285f7ea7..9878f4028d7cc54b4129aa4c4adb25249872552e 100644 (file)
@@ -2,7 +2,8 @@
 #36732, add support for req_extensions in openss_csr_new and sign
 --SKIPIF--
 <?php 
-if (!extension_loaded("openssl")) die("skip"); 
+if (!extension_loaded("openssl")) die("skip");
+if (OPENSSL_VERSION_NUMBER < 0x009070af) die("skip");
 ?>
 --FILE--
 <?php 
diff --git a/ext/openssl/tests/bug41353.phpt b/ext/openssl/tests/bug41353.phpt
new file mode 100644 (file)
index 0000000..199198b
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+#41353 openssl_pkcs12_read() does not verify the type of the first arg
+--SKIPIF--
+<?php 
+if (!extension_loaded("openssl")) die("skip"); 
+?>
+--FILE--
+<?php
+
+$a = 2;
+openssl_pkcs12_read(1, $a, 1);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Done
\ No newline at end of file