aboutsummaryrefslogtreecommitdiff
path: root/php/ext/google/protobuf/def.c
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-05-29 15:30:47 -0700
committerGitHub <noreply@github.com>2017-05-29 15:30:47 -0700
commit282fb9e68ec101b7b7616a45279427944afc3e6b (patch)
treebb7d92efef2d228e62c47ec3ce8951c8fd567b0b /php/ext/google/protobuf/def.c
parent4d5daf4ef97918176b892dbedce17b1d854ffe8e (diff)
downloadprotobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.tar.gz
protobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.tar.bz2
protobuf-282fb9e68ec101b7b7616a45279427944afc3e6b.zip
Add ARRAY for reserved name (#3150)
Diffstat (limited to 'php/ext/google/protobuf/def.c')
-rw-r--r--php/ext/google/protobuf/def.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/ext/google/protobuf/def.c b/php/ext/google/protobuf/def.c
index 8e563a61..099ebd05 100644
--- a/php/ext/google/protobuf/def.c
+++ b/php/ext/google/protobuf/def.c
@@ -30,8 +30,8 @@
#include "protobuf.h"
-const char* const kReservedNames[] = {"Empty"};
-const int kReservedNamesSize = 1;
+const char* const kReservedNames[] = {"Empty", "ECHO", "ARRAY"};
+const int kReservedNamesSize = 3;
// Forward declare.
static void descriptor_init_c_instance(Descriptor* intern TSRMLS_DC);