fix error message which appeared even if no ssl mode was selected

This commit is contained in:
Wez Furlong 2002-03-18 20:44:15 +00:00
parent c5ad6ae1b8
commit e3a884f552

View File

@ -201,7 +201,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
}
#if HAVE_OPENSSL_EXT
if (stream) {
if (stream && ssl_flags != php_ssl_none) {
int ssl_ret = FAILURE;
switch(ssl_flags) {
case php_ssl_v23: