aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/ext/google/protobuf/protobuf.h
Commit message (Collapse)AuthorAge
* Update php version to 3.6.0 (#4736)Gravatar Paul Yang2018-06-06
|
* Merge branch (#4466)Gravatar Paul Yang2018-04-02
| | | | | | | | * Fix setup.py for windows build. * Bump version number to 3.5.2 * Cat the test-suite.log on errors for presubits
* Well known types are not initialized properly. (#4139)Gravatar Paul Yang2018-01-05
| | | | | | | | | Previously, within the same load period of protobuf module, well known types are not initialized correctly for the second request. The reason is that well known type are only initialized if a method local static variable is not set. However, that variable is not reset after request ends. Therefore, when the second request comes, the method local static variable is still set (by previous request) and well types are not initialized in this case.
* Call php method via function name instead of calling directly.Gravatar Bo Yang2017-12-12
| | | | | | | This changes the linking error if php extension is not statically linked to a runtime error. In this way, users who don't need Timestamp can still use protobuf even if date extension is not statically linked in php.
* Merge branch '3.5.0.1' into 3.5.xGravatar Bo Yang2017-12-11
|\
| * Update php c extension version number to 3.5.0.1Gravatar Bo Yang2017-12-06
| |
| * Remove duplicate typedef. (#3975)Gravatar Paul Yang2017-12-06
| |
* | Remove duplicate typedef. (#3975)Gravatar Paul Yang2017-11-30
| |
* | Provide discardUnknonwnFields API in php (#3976)Gravatar Paul Yang2017-11-30
| | | | | | | | | | | | * Provide discardUnknownFields API in php implementation * Provide discardUnknownFields API in php c extension.
* | Update version number for php c extension (#3896)Gravatar Paul Yang2017-11-15
|/
* Fix php well known type conformance tests (#3828) (#3840)Gravatar Paul Yang2017-11-04
| | | | | | | | | | | | | | | * Fix php well known type conformance tests * Properly generate code for test.proto * Provide GPBMetadata files in c extensions for generated files to import. * Remove unnecessary test * Clean up code * Add declaration for initOnce. * Refactoring
* Merge remote-tracking branch 'origin/3.4.x' into masterGravatar Jisi Liu2017-10-11
|\
* | Add well known types to php runtime. (#3697)Gravatar Paul Yang2017-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add well known types to php runtime. * Fix php7.0 tests * No longer generate empty.proto in test as it has been included in runtime. * Fix zts build * Clean code * Rename g_p_b_empty to empty. * Don't generate code for empty.proto in compatibility test * Fix 32-bit * Fix mac build * Fix Makefile.am to add new files
| * Merge pull request #3612 from TeBoring/php-bugGravatar Paul Yang2017-09-15
| |\ | | | | | | Add prefix to php reserved keywords.
| * | Bump version for minor releaseGravatar Jisi Liu2017-09-14
| | |
| | * Exclude valid constant name from reserved name.Gravatar Bo Yang2017-09-12
| | |
| | * Change array to map for reserved names in c extensionGravatar Bo Yang2017-09-11
| |/
* | Add native php support for Duration. (#3583)Gravatar Paul Yang2017-09-05
| |
* | Add php support for Timestamp. (#3575)Gravatar Paul Yang2017-08-31
| | | | | | | | | | | | * Add php support for Timestamp. * Fix comments
* | Add any support in php runtime. (#3486)Gravatar Paul Yang2017-08-25
|/ | | | | | | | | | | | * Add any support in php runtime. * Remove unused file in config.m4 * Fix comments * Fix error for tsrmls build * Add newly added file to Makefile.am
* Update php version number to 3.4.0Gravatar Bo Yang2017-08-16
|
* Update php c extension version number.Gravatar Bo Yang2017-08-16
|
* Fix the bug in php c extension that setting one field can change ↵Gravatar Paul Yang2017-08-04
| | | | | | | | | | | | | | | | | | | | | | another field's value. (#3455) * Fix the bug in php c extension that setting one field can change another field's value. The reason is that previously, in c extension, it was assumed that the order that fields were declared in php is the same as the order of fields in upb. This is not true. Now, for every field in upb, we will look up the actual property that is corresponding to the upb field. * Cleanup pull request * Fix indentation * Port to php5 * Port with php7.1 * Port to zts
* Add getClass for php Descriptor in c extension (#3443)Gravatar Paul Yang2017-08-02
|
* Expose descriptor API in php c extension (#3422)Gravatar Paul Yang2017-08-02
|
* Fix cycle dependency for repeated field not collected by gc (#3399)Gravatar Paul Yang2017-07-25
|
* Merge 3.3.x into masterGravatar Bo Yang2017-07-18
|\
* | Initial value in generated code cannot be used by c extension. (#3367)Gravatar Paul Yang2017-07-14
| | | | | | | | | | | | | | | | | | | | In the generated code of previous versions, each php field is given an initial value. In c extension, it was assumed that the field order in the generated code is consistent with upb fields order, so that the correct initial value can be bound to the correct upb field. However, this may not be true. The order of fields in generated code is decided by proto compiler, while the order of upb fields is decided by the hash function used in c extension. This PR fixes the issue by reset the initial value at runtime.
* | Add map iterator for c extension (#3350)Gravatar Paul Yang2017-07-13
| |
* | Add json encode/decode for php. (#3226)Gravatar Paul Yang2017-06-30
| | | | | | | | | | | | | | | | | | | | * Add json encode/decode for php. * Fix php conformance test on 32-bit machines. * Fix conformance test for c extension. * Fix comments
| * Update version number to 3.3.2Gravatar Bo Yang2017-06-21
| |
| * Update version number to 3.3.1Gravatar Feng Xiao2017-05-08
|/
* Update php version number to 3.3.0 (#3001)Gravatar Paul Yang2017-04-24
|
* Make PHP c extension work with PHP7 (#2951)Gravatar Paul Yang2017-04-19
|
* Repeated/Map field setter should accept a regular PHP array (#2817)Gravatar Paul Yang2017-03-10
| | | | | | | | Accept regular PHP array for repeated/map setter. Existing map/repeated field will be swapped by a clean map/repeated field. Then, elements in the array will be added to the map/repeated field. All elements will be type checked before adding. See #2686 for detail.
* Rename encode/decode to serializeToString/mergeFromString (#2795)Gravatar Paul Yang2017-03-08
| | | | | This better shows the semantic of the API. For already setted fields, mergeFromString do replacement for singular fields and appending for repeated fields.
* Add mergeFrom method on Message (#2766)Gravatar Paul Yang2017-03-01
| | | | | | | | 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.
* Add clear method to PHP message (#2700)Gravatar Paul Yang2017-02-11
|
* Implement json encoding decoding for php. (#2682)Gravatar Paul Yang2017-02-08
|
* Merge 3.2.x branch into master (#2648)Gravatar Paul Yang2017-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Down-integrate internal changes to github. * Update conformance test failure list. * Explicitly import used class in nano test to avoid random test fail. * Update _GNUC_VER to use the correct implementation of atomic operation on Mac. * maps_test.js: check whether Symbol is defined before using it (#2524) Symbol is not yet available on older versions of Node.js and so this test fails with them. This change just directly checks whether Symbol is available before we try to use it. * Added well_known_types_embed.cc to CLEANFILES so that it gets cleaned up * Updated Makefile.am to fix out-of-tree builds * Added Bazel genrule for generating well_known_types_embed.cc In pull request #2517 I made this change for the CMake and autotools builds but forgot to do it for the Bazel build. * Update _GNUC_VER to use the correct implementation of atomic operation on Mac. * Add new js file in extra dist. * Bump version number to 3.2.0 * Fixed issue with autoloading - Invalid paths (#2538) * PHP fix int64 decoding (#2516) * fix int64 decoding * fix int64 decoding + tests * Fix int64 decoding on 32-bit machines. * Fix warning in compiler/js/embed.cc embed.cc: In function ‘std::string CEscape(const string&)’: embed.cc:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < str.size(); ++i) { ^ * Fix include in auto-generated well_known_types_embed.cc Restore include style fix (e3da722) that has been trampled by auto-generation of well_known_types_embed.cc * Fixed cross compilations with the Autotools build Pull request #2517 caused cross compilations to start failing, because the js_embed binary was being built to run on the target platform instead of on the build machine. This change updates the Autotools build to use the AX_PROG_CXX_FOR_BUILD macro to find a suitable compiler for the build machine and always use that when building js_embed. * Minor fix for autocreated object repeated fields and maps. - If setting/clearing a repeated field/map that was objects, check the class before checking the autocreator. - Just to be paranoid, don’t mutate within copy/mutableCopy for the autocreated classes to ensure there is less chance of issues if someone does something really crazy threading wise. - Some more tests for the internal AutocreatedArray/AutocreatedDictionary classes to ensure things are working as expected. - Add Xcode 8.2 to the full_mac_build.sh supported list. * Fix generation of extending nested messages in JavaScript (#2439) * Fix generation of extending nested messages in JavaScript * Added missing test8.proto to build * Fix generated code when there is no namespace but there is enum definition. * Decoding unknown field should succeed. * Add embed.cc in src/Makefile.am to fix dist check. * Fixed "make distcheck" for the Autotools build To make the test pass I needed to fix out-of-tree builds and update EXTRA_DIST and CLEANFILES. * Remove redundent embed.cc from src/Makefile.am * Update version number to 3.2.0-rc.1 (#2578) * Change protoc-artifacts version to 3.2.0-rc.1 * Update version number to 3.2.0rc2 * Update change logs for 3.2.0 release. * Update php README * Update upb, fixes some bugs (including a hash table problem). (#2611) * Update upb, fixes some bugs (including a hash table problem). * Ruby: added a test for the previous hash table corruption. Verified that this triggers the bug in the currently released version. * Ruby: bugfix for SEGV. * Ruby: removed old code for dup'ing defs. * Reverting deployment target to 7.0 (#2618) The Protobuf library doesn’t require the 7.1 deployment target so reverting it back to 7.0 * Fix typo that breaks builds on big-endian (#2632) * Bump version number to 3.2.0
* Oneof accessor should return the field name that is actually set. (#2631)Gravatar Paul Yang2017-01-27
|
* Make php generated code conform to PSR-4. (#2435)Gravatar Paul Yang2016-12-08
| | | | 1. Generate single file for each message. 2. Lazily initiate metadata.
* Fix php c extension on 32-bit machines. (#2348)Gravatar Paul Yang2016-11-10
|
* Implement RepeatedFieldIter for c extension. (#2333)Gravatar Paul Yang2016-11-08
|
* Fix compile error for php on Mac.Gravatar Bo Yang2016-10-10
|
* PHP: fix ZTS tsrm_ls errors (#2189)Gravatar Stanley Cheung2016-10-10
| | | | | | * PHP: fix ZTS tsrm_ls errors * Fix a few more macros
* Fixing inconsistent php version number.Gravatar Bo Yang2016-10-10
|
* Check in php implementation. (#2052)Gravatar Paul Yang2016-09-15
| | | | | This pull request includes two implementation: C extension and PHP package. Both implementations support encode/decode of singular, repeated and map fields.
* Integrate google internal changes.Gravatar Jisi Liu2016-03-30