pajoye          Mon May 28 13:48:36 2007 UTC

  Modified files:              
    /php-src/ext/openssl/tests  bug41353.phpt bug36732.phpt 
  Log:
  - skip if openssl is too old
  - MFB test bug41353.phpt
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/tests/bug41353.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/openssl/tests/bug41353.phpt
diff -u /dev/null php-src/ext/openssl/tests/bug41353.phpt:1.2
--- /dev/null   Mon May 28 13:48:36 2007
+++ php-src/ext/openssl/tests/bug41353.phpt     Mon May 28 13:48:36 2007
@@ -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
http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/tests/bug36732.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/openssl/tests/bug36732.phpt
diff -u php-src/ext/openssl/tests/bug36732.phpt:1.2 
php-src/ext/openssl/tests/bug36732.phpt:1.3
--- php-src/ext/openssl/tests/bug36732.phpt:1.2 Mon Jul 31 00:36:09 2006
+++ php-src/ext/openssl/tests/bug36732.phpt     Mon May 28 13:48:36 2007
@@ -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 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to