]> granicus.if.org Git - php/commitdiff
fix test warnings for OpenSSL 1.1
authorAnatol Belski <ab@php.net>
Wed, 22 Mar 2017 11:23:19 +0000 (12:23 +0100)
committerAnatol Belski <ab@php.net>
Wed, 22 Mar 2017 12:55:08 +0000 (13:55 +0100)
add skip condition

ext/standard/tests/streams/stream_socket_enable_crypto-win32.phpt

index 7353ee4d978d56d41ce1875a9008b8293629d7cd..994b3f6444797bfc0a61649599d87772f8bc94e5 100644 (file)
@@ -10,6 +10,7 @@ if (!extension_loaded('openssl')) {
 if (substr(PHP_OS, 0, 3) != 'WIN' ) {
        die('skip windows only test');
 }
+if (OPENSSL_VERSION_NUMBER < 0x10001001) die("skip OpenSSLv1.0.1 required");
 ?>
 --FILE--
 <?php
@@ -47,11 +48,11 @@ bool(false)
 Warning: stream_socket_enable_crypto(): SSLv2 unavailable in this PHP version in %s on line %d
 bool(false)
 
-Warning: stream_socket_enable_crypto(): SSL: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
- in %s on line %d
+Warning: stream_socket_enable_crypto(): SSLv3 unavailable %s in %s on line %d
 bool(false)
 
-Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in %s on line %d
+Warning: stream_socket_enable_crypto(): SSL: The operation completed successfully.
+ in %s on line %d
 bool(false)
 
 Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in %s on line %d