aboutsummaryrefslogtreecommitdiffhomepage
path: root/php
diff options
context:
space:
mode:
authorGravatar Bo Yang <teboring@google.com>2017-12-14 13:24:00 -0800
committerGravatar Bo Yang <teboring@google.com>2017-12-14 13:24:00 -0800
commit8d6f13e86d62b47570810371a6c0528cfb10b781 (patch)
treea0a2620f6e0fcf53cb026892ca799b4b54a43d9f /php
parent39159c89f1e6924c1b12a6f12478b6de199894f4 (diff)
Fix for php5.5
Diffstat (limited to 'php')
-rw-r--r--php/ext/google/protobuf/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/ext/google/protobuf/message.c b/php/ext/google/protobuf/message.c
index 8b7d57ad..24472682 100644
--- a/php/ext/google/protobuf/message.c
+++ b/php/ext/google/protobuf/message.c
@@ -1131,7 +1131,7 @@ PHP_METHOD(Timestamp, fromDateTime) {
}
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &datetime,
- date_interface_ce) == FAILURE) {
+ PHP_PROTO_CE_UNREF(date_interface_ce)) == FAILURE) {
zend_error(E_USER_ERROR, "Expect DatetimeInterface.");
return;
}