Commit graph

8 commits

Author SHA1 Message Date
Paul Yang
bcbaabe53a Add mergeFrom method on Message ()
This method merges the contents of the specified message into the
current message. Singular fields that are set in the specified message
overwrite the corresponding fields in the current message.  Repeated
fields are appended. Map fields key-value pairs are overritten.
Singular/Oneof sub-messages are recursively merged. All overritten
sub-messages are deep-copied.
2017-03-01 10:39:48 -08:00
Paul Yang
46ae90dc5e Make php generated code conform to PSR-4. ()
1. Generate single file for each message.
2. Lazily initiate metadata.
2016-12-08 11:16:49 -08:00
Paul Yang
99564c3347 Rename Empty to GPBEmpty in php generated file.
In php, class name cannot be "Empty". Modified code generator to () generate GPBEmpty instead (for google.protobuf.Empty only). Also change
runtime code to work with the new generated code accordingly.
2016-11-16 11:07:43 -08:00
Paul Yang
df8390790a Fix php c extension on 32-bit machines. () 2016-11-10 11:20:50 -08:00
Bo Yang
63448e6059 Fix compile error for php on Mac. 2016-10-10 11:44:54 -07:00
Bo Yang
c8bd36e5b9 Test php5.5_c test on jenkins 2016-10-10 11:44:54 -07:00
Bo Yang
c6fa9c71a5 Auto-generate proto files for tests. 2016-09-15 17:59:49 -07:00
Paul Yang
e0e54661f7 Check in php implementation. ()
This pull request includes two implementation: C extension and PHP
package. Both implementations support encode/decode of singular,
repeated and map fields.
2016-09-15 11:09:01 -07:00