Guest User

Untitled

a guest
Feb 28th, 2015
823
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/ext/mysqlnd/mysqlnd_net.c b/ext/mysqlnd/mysqlnd_net.c
  2. index 8683248..522cf24 100644
  3. --- a/ext/mysqlnd/mysqlnd_net.c
  4. +++ b/ext/mysqlnd/mysqlnd_net.c
  5. @@ -872,9 +872,9 @@ MYSQLND_METHOD(mysqlnd_net, enable_ssl)(MYSQLND_NET * const net TSRMLS_DC)
  6. ZVAL_STRING(&key_zval, net->data->options.ssl_key, 0);
  7. php_stream_context_set_option(context, "ssl", "local_pk", &key_zval);
  8. }
  9. - if (net->data->options.ssl_verify_peer) {
  10. + {
  11. zval verify_peer_zval;
  12. - ZVAL_TRUE(&verify_peer_zval);
  13. + ZVAL_BOOL(&verify_peer_zval, net->data->options.ssl_verify_peer? TRUE:FALSE);
  14. php_stream_context_set_option(context, "ssl", "verify_peer", &verify_peer_zval);
  15. }
  16. if (net->data->options.ssl_cert) {
RAW Paste Data