Merge pull request #786 from ctiller/travis-wrap

Make PHP compile
pull/795/head
Michael Lumish 10 years ago
commit b63518a341
  1. 2
      src/php/ext/grpc/credentials.c
  2. 4
      src/php/ext/grpc/event.c

@ -94,7 +94,7 @@ zval *grpc_php_wrap_credentials(grpc_credentials *wrapped) {
* @return Credentials The new default credentials object * @return Credentials The new default credentials object
*/ */
PHP_METHOD(Credentials, createDefault) { PHP_METHOD(Credentials, createDefault) {
grpc_credentials *creds = grpc_default_credentials_create(); grpc_credentials *creds = grpc_google_default_credentials_create();
zval *creds_object = grpc_php_wrap_credentials(creds); zval *creds_object = grpc_php_wrap_credentials(creds);
RETURN_DESTROY_ZVAL(creds_object); RETURN_DESTROY_ZVAL(creds_object);
} }

@ -90,10 +90,6 @@ zval *grpc_php_convert_event(grpc_event *event) {
add_property_stringl(event_object, "data", read_string, read_len, true); add_property_stringl(event_object, "data", read_string, read_len, true);
} }
break; break;
case GRPC_INVOKE_ACCEPTED:
add_property_long(event_object, "data",
(long)event->data.invoke_accepted);
break;
case GRPC_WRITE_ACCEPTED: case GRPC_WRITE_ACCEPTED:
add_property_long(event_object, "data", (long)event->data.write_accepted); add_property_long(event_object, "data", (long)event->data.write_accepted);
break; break;

Loading…
Cancel
Save