Fix for php5.5

pull/4034/head
Bo Yang 7 years ago
parent 39159c89f1
commit 8d6f13e86d
  1. 2
      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, 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."); zend_error(E_USER_ERROR, "Expect DatetimeInterface.");
return; return;
} }

Loading…
Cancel
Save