1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/soap/tests/ssl_method_deprecation.phpt
T
Nikita Popov 9491694903 Deprecate SoapClient ssl_method option
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.
2021-07-14 09:36:26 +02:00

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