浏览代码

Some php engine implementation doesn't have return_value_ptr properly set. Explicitly use &return_value.

Bo Yang 9 年之前
父节点
当前提交
3b001ca6ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      php/ext/google/protobuf/message.c

+ 1 - 1
php/ext/google/protobuf/message.c

@@ -227,7 +227,7 @@ PHP_METHOD(Message, readOneof) {
   zval** cache_ptr = &(msg->std.properties_table)[property_cache_index];
 
   layout_get(msg->descriptor->layout, message_data(msg), field,
-             return_value_ptr TSRMLS_CC);
+             &return_value TSRMLS_CC);
 }
 
 PHP_METHOD(Message, writeOneof) {