diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-07-20 11:03:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 11:03:46 -0700 |
commit | fc90fd6df1db9c89e08eaf93a9a525928c459cdf (patch) | |
tree | 8371b2aa31192d43be9d95982555b2f1351deae0 /php/ext/google/protobuf/message.c | |
parent | d85ffdce419eb3e5b8444e2fed7c9e13f3b9637e (diff) | |
download | protobuf-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.c | 8 |
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, |