소스 검색

Fix for php5.5

Bo Yang 8 년 전
부모
커밋
8d6f13e86d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      php/ext/google/protobuf/message.c

+ 1 - 1
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;
   }