mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
9491694903
Instead use ssl stream context options instead. The direct equivalent would be crypto_method, but min_proto_version / max_proto_version are recommended instead. Part of https://wiki.php.net/rfc/deprecations_php_8_1.
17 lines
342 B
PHP
17 lines
342 B
PHP
--TEST--
|
|
ssl_method option is deprecated
|
|
--EXTENSIONS--
|
|
soap
|
|
--FILE--
|
|
<?php
|
|
|
|
new SoapClient(null, [
|
|
'location' => 'foo',
|
|
'uri' => 'bar',
|
|
'ssl_method' => SOAP_SSL_METHOD_TLS,
|
|
]);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: SoapClient::__construct(): The "ssl_method" option is deprecated. Use "ssl" stream context options instead in %s on line %d
|