Merge pull request #165 from murgatroid99/php_ssl_fix

Fixed junk data bug in PHP SSL Credentials
pull/171/head
Tim Emiola 10 years ago
commit 31b62c0eb9
  1. 2
      src/php/ext/grpc/credentials.c

@ -81,6 +81,8 @@ PHP_METHOD(Credentials, createSsl) {
int root_certs_length, private_key_length = 0, cert_chain_length = 0;
pem_key_cert_pair.private_key = pem_key_cert_pair.cert_chain = NULL;
/* "s|s!s! == 1 string, 2 optional nullable strings */
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!",
&pem_root_certs, &root_certs_length,

Loading…
Cancel
Save