Req #67224 [NEW]: stream_socket_enable_crypto() requires crypto type when enabling

From: Date: Wed, 07 May 2014 10:20:19 +0000
Subject: Req #67224 [NEW]: stream_socket_enable_crypto() requires crypto type when enabling
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185686@lists.php.net to get a copy of this message
From: daverandom Operating system: Any PHP version: 5.6.0beta2 Package: Streams related Bug Type: Feature/Change Request Bug description:stream_socket_enable_crypto() requires crypto type when enabling Description: ------------ Since 5.6.x the crypto type can be determined from the ssl->crypto_method stream context value, it should no longer be a required argument. An error should emitted only when neither value is supplied. Test script: --------------- $sock = stream_socket_client('tcp://google.com:443'); stream_context_set_option($sock, 'ssl', 'crypto_method', STREAM_CRYPTO_METHOD_TLS_CLIENT); stream_socket_enable_crypto($sock, true); Expected result: ---------------- Crypto enabling succeeds, with method determined from the stream's context options Actual result: -------------- Crypto enabling fails because 3rd argument is not supplied -- Edit bug report at https://bugs.php.net/bug.php?id=67224&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67224&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67224&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67224&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67224&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67224&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67224&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67224&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67224&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67224&r=support Expected behavior: https://bugs.php.net/fix.php?id=67224&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67224&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67224&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67224&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67224&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67224&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67224&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67224&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67224&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67224&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67224&r=mysqlcfg

« previous php.bugs (#185686) next »