aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-25 09:47:00 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-25 09:47:00 -0800
commit035a9042660d003f52b38029a25f430b0ce8b277 (patch)
treeab64ad9d6e633443a29186e389434af5dd131ba3 /src
parentafae27cf5ec1d8b7d5b7f6a349b47502a12360de (diff)
Make PHP compile
Diffstat (limited to 'src')
-rw-r--r--src/php/ext/grpc/credentials.c2
-rw-r--r--src/php/ext/grpc/event.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/php/ext/grpc/credentials.c b/src/php/ext/grpc/credentials.c
index f25e042dd7..6d8f59fa33 100644
--- a/src/php/ext/grpc/credentials.c
+++ b/src/php/ext/grpc/credentials.c
@@ -94,7 +94,7 @@ zval *grpc_php_wrap_credentials(grpc_credentials *wrapped) {
* @return Credentials The new default credentials object
*/
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);
RETURN_DESTROY_ZVAL(creds_object);
}
diff --git a/src/php/ext/grpc/event.c b/src/php/ext/grpc/event.c
index 8d398450a4..452c4b8bcb 100644
--- a/src/php/ext/grpc/event.c
+++ b/src/php/ext/grpc/event.c
@@ -90,10 +90,6 @@ zval *grpc_php_convert_event(grpc_event *event) {
add_property_stringl(event_object, "data", read_string, read_len, true);
}
break;
- case GRPC_INVOKE_ACCEPTED:
- add_property_long(event_object, "data",
- (long)event->data.invoke_accepted);
- break;
case GRPC_WRITE_ACCEPTED:
add_property_long(event_object, "data", (long)event->data.write_accepted);
break;