From 8d6f13e86d62b47570810371a6c0528cfb10b781 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 14 Dec 2017 13:24:00 -0800 Subject: Fix for php5.5 --- php/ext/google/protobuf/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php') 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; } -- cgit v1.2.3