Skip to content

Commit ecd6cd8

Browse files
committed
Convert stream error in php_stream_xport_crypto_get_status
1 parent 8816199 commit ecd6cd8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main/streams/transports.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ PHPAPI int php_stream_xport_crypto_get_status(php_stream *stream)
411411
return param.outputs.returncode;
412412
}
413413

414-
php_error_docref("streams.crypto", E_WARNING, "This stream does not support SSL/crypto");
414+
php_stream_warn_docref(stream, "streams.crypto", SslNotSupported,
415+
"This stream does not support SSL/crypto");
415416

416417
return STREAM_CRYPTO_STATUS_NONE;
417418
}

0 commit comments

Comments
 (0)