From: geissert Operating system: PHP version: 5.4.8 Package: cURL related Bug Type: Bug Bug description:Can't enable hostname validation when using curl stream wrappers
Description: ------------ When PHP is built with --with-curlwrappers, the context option "curl_verify_ssl_host" sets curl's CURLOPT_SSL_VERIFYHOST option to 1, but there is no way to set it to 2. Given that the option is a boolean, it should probably be setting the VERIFYHOST value to 2. There is no way to validate that the certificate belongs to the host otherwise. This applies to the ftps and https stream wrappers. -- Edit bug report at https://bugs.php.net/bug.php?id=63352&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63352&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63352&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63352&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63352&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63352&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63352&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63352&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63352&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63352&r=support Expected behavior: https://bugs.php.net/fix.php?id=63352&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63352&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63352&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63352&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63352&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63352&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63352&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63352&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63352&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63352&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63352&r=mysqlcfg