aboutsummaryrefslogtreecommitdiff
path: root/php/ext/google/protobuf/message.c
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2018-07-20 11:03:46 -0700
committerGitHub <noreply@github.com>2018-07-20 11:03:46 -0700
commitfc90fd6df1db9c89e08eaf93a9a525928c459cdf (patch)
tree8371b2aa31192d43be9d95982555b2f1351deae0 /php/ext/google/protobuf/message.c
parentd85ffdce419eb3e5b8444e2fed7c9e13f3b9637e (diff)
downloadprotobuf-fc90fd6df1db9c89e08eaf93a9a525928c459cdf.tar.gz
protobuf-fc90fd6df1db9c89e08eaf93a9a525928c459cdf.tar.bz2
protobuf-fc90fd6df1db9c89e08eaf93a9a525928c459cdf.zip
Make assertEquals pass for message (#4947)
This change only makes assertEquals pass for message in c extension. However, it actually does nothing. This is the same behavior before 3.6.0 release.
Diffstat (limited to 'php/ext/google/protobuf/message.c')
-rw-r--r--php/ext/google/protobuf/message.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/php/ext/google/protobuf/message.c b/php/ext/google/protobuf/message.c
index 06853874..76b97eef 100644
--- a/php/ext/google/protobuf/message.c
+++ b/php/ext/google/protobuf/message.c
@@ -222,13 +222,7 @@ static zval* message_get_property_ptr_ptr(zval* object, zval* member, int type,
}
static HashTable* message_get_properties(zval* object TSRMLS_DC) {
- // User cannot get property directly (e.g., $a = $m->a)
- zend_error(E_USER_ERROR, "Cannot access private properties.");
-#if PHP_MAJOR_VERSION < 7
- return zend_std_get_properties(object TSRMLS_CC);
-#else
- return zend_std_get_properties(object);
-#endif
+ return NULL;
}
static HashTable* message_get_gc(zval* object, CACHED_VALUE** table,