cvs: php-src /ext/openssl/tests 001.phpt bug25614.phpt skipif.inc
| From: | Ilia Alshanetsky | Date: | Tue, 27 Dec 2005 17:17:10 +0000 |
| Subject: | cvs: php-src /ext/openssl/tests 001.phpt bug25614.phpt skipif.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36269@lists.php.net to get a copy of this message | ||
iliaa Tue Dec 27 17:17:10 2005 EDT
Removed files:
/php-src/ext/openssl/tests skipif.inc
Modified files:
/php-src/ext/openssl/tests 001.phpt bug25614.phpt
Log:
MFB51: Improve "skip" checks
http://cvs.php.net/viewcvs.cgi/php-src/ext/openssl/tests/001.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/openssl/tests/001.phpt
diff -u php-src/ext/openssl/tests/001.phpt:1.5 php-src/ext/openssl/tests/001.phpt:1.6
--- php-src/ext/openssl/tests/001.phpt:1.5 Wed May 19 08:56:49 2004
+++ php-src/ext/openssl/tests/001.phpt Tue Dec 27 17:17:10 2005
@@ -1,8 +1,10 @@
--TEST--
OpenSSL private key functions
--SKIPIF--
-<?php // vim600:syn=php
-include('skipif.inc'); ?>
+<?php
+if (!extension_loaded("openssl")) die("skip");
+if (!@openssl_pkey_new()) die("skip cannot create private key");
+?>
--FILE--
<?php
echo "Creating private key\n";
http://cvs.php.net/viewcvs.cgi/php-src/ext/openssl/tests/bug25614.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/openssl/tests/bug25614.phpt
diff -u php-src/ext/openssl/tests/bug25614.phpt:1.3 php-src/ext/openssl/tests/bug25614.phpt:1.4
--- php-src/ext/openssl/tests/bug25614.phpt:1.3 Wed Sep 24 10:35:19 2003
+++ php-src/ext/openssl/tests/bug25614.phpt Tue Dec 27 17:17:10 2005
@@ -1,7 +1,10 @@
--TEST--
openssl: get public key from generated private key
--SKIPIF--
-<?php if (!extension_loaded("openssl")) print "skip"; ?>
+<?php
+if (!extension_loaded("openssl")) die("skip");
+if (!@openssl_pkey_new()) die("skip cannot create private key");
+?>
--FILE--
<?php
$priv = openssl_pkey_new();