aboutsummaryrefslogtreecommitdiffhomepage
path: root/php
Commit message (Collapse)AuthorAge
* Merge pull request #4827 from acozzette/merge-3-6-xGravatar Adam Cozzette2018-06-25
|\ | | | | Merge 3.6.x branch into master
* | rename duplicate testMessageSetNullFail function (#3669)Gravatar Pat Moroney2018-06-25
| | | | | | | | the testMessageSetNullFail function was declared twice. So I renamed one to testMessageSetNullFailMap
* | Improved install command. (#4106)Gravatar Vladimir Kovpak2018-06-25
| | | | | | Added `-y` flag to `sudo apt-get` command.
| * Merge branch '3.6.x' into merge-3-6-xGravatar Adam Cozzette2018-06-25
|/|
| * Use legacy name in php runtime (#4741)Gravatar Paul Yang2018-06-07
| | | | | | | | | | | | | | | | | | * Use legacy name in php runtime Old generated code cannot work with new runtime, because the new runtime assumes new class name for nested message. For details see #4738. * Remove unused method
| * Update php version to 3.6.0 (#4736)Gravatar Paul Yang2018-06-06
| |
| * Fix php memory leak test (#4692)Gravatar Paul Yang2018-05-29
| |
* | Fix php memory leak test (#4692)Gravatar Paul Yang2018-05-29
| |
| * Fix array constructor in c extension for compatibility (#4667)Gravatar Paul Yang2018-05-25
| | | | | | | | | | In old generated code, the constructor of message doesn't provide a default null to parent's constructor. Previously, in c extesnion, this case was not handled.
| * PHP namespaces for nested messages and enums (#4536)Gravatar Brent Shaffer2018-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
| * Implement array constructor in php c extension.Gravatar Bo Yang2018-05-25
| |
| * PHP array constructors for protobuf messages (#4530)Gravatar Brent Shaffer2018-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
| * Adopt php_metadata_namespace in php code generator (#4622)Gravatar Paul Yang2018-05-25
| | | | | | | | | | | | | | | | | | | | | | * Adopt php_metadata_namespace in php code generator The php_metadata_namespace is corresponded to the relative directory of the metadata file. e.g., previously, the metadata file of foo.proto was GPBMetadata/Foo.php. If the php_metadata_namespace is "Metadata\\Bar", the metadata file will be Metadata/Bar/Foo.php. * Handle empty php_metadata_namespace
* | Fix array constructor in c extension for compatibility (#4667)Gravatar Paul Yang2018-05-24
| | | | | | | | | | In old generated code, the constructor of message doesn't provide a default null to parent's constructor. Previously, in c extesnion, this case was not handled.
* | PHP namespaces for nested messages and enums (#4536)Gravatar Brent Shaffer2018-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
* | Implement array constructor in php c extension.Gravatar Bo Yang2018-05-24
| |
* | PHP array constructors for protobuf messages (#4530)Gravatar Brent Shaffer2018-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
* | Updated PHP generated code for timestamp.protoGravatar Adam Cozzette2018-05-17
| |
* | Adopt php_metadata_namespace in php code generator (#4622)Gravatar Paul Yang2018-05-14
|/ | | | | | | | | | | * Adopt php_metadata_namespace in php code generator The php_metadata_namespace is corresponded to the relative directory of the metadata file. e.g., previously, the metadata file of foo.proto was GPBMetadata/Foo.php. If the php_metadata_namespace is "Metadata\\Bar", the metadata file will be Metadata/Bar/Foo.php. * Handle empty php_metadata_namespace
* Add file option php_metadata_namespace and ruby_package (#4609)Gravatar Paul Yang2018-05-11
|
* Throw error if user want to access message properties (#4603)Gravatar Paul Yang2018-05-10
| | | | | | * Throw error if user want to access message properties * Fix typo
* Avoid direct check of class name (#4601)Gravatar Paul Yang2018-05-10
| | | | | | | | * Avoid direct check of class name So that subclasses are also ok * Use type hint in function signature.
* Add space between class name and concat message (#4577)Gravatar Petar Dambovaliev2018-04-30
| | | | The class name was linked to the next word in the sentence. "User\UserRequestis not found in descriptor pool."
* fix json_decode call parameters (#4381)Gravatar urfinjuezz2018-04-09
|
* includes the expected class in the exception, otherwise the error is harder ↵Gravatar Brent Shaffer2018-04-09
| | | | to track down (#3371)
* 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
* Sync upb change (#4373)Gravatar Paul Yang2018-03-08
|
* Convert descriptortype to type for upb_msgval_sizeof (#4357)Gravatar Paul Yang2018-03-06
|
* For encoding upb needs descriptor type instead of type. (#4354)Gravatar Paul Yang2018-03-06
|
* PHP: fixed typo in message.cGravatar Adam Cozzette2018-03-05
|
* Merge pull request #4291 from google/3.5.xGravatar Jisi Liu2018-02-26
|\ | | | | Merge 3.5.x to master
| * Fix more memory leak for php c extension (#4211)Gravatar Paul Yang2018-01-25
| | | | | | | | | | | | * Fix more memory leak for php c extension * Fix memory leak for php5.5
| * 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.
* | Merge remote-tracking branch 'origin/3.5.x' into masterGravatar Jisi Liu2018-01-03
|\|
| * Merge pull request #4034 from TeBoring/php-timestamp-bugGravatar Paul Yang2017-12-15
| |\ | | | | | | Avoid calling method from php extension directly
| | * Fix for php5.5Gravatar Bo Yang2017-12-14
| | |
| | * Accept DatetimeInterface in fromDatetimeGravatar Bo Yang2017-12-14
| | |
| | * Avoid using php_date_get_date_ce() in case date extension is notGravatar Bo Yang2017-12-13
| | | | | | | | | | | | available.
| | * 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 pull request #4028 from TeBoring/3.5.xGravatar Paul Yang2017-12-12
| |\ \ | | | | | | | | Add backslach to make class explict in global namespace
| | | * Replace private timelib_update_ts with public date_timestamp_getGravatar Bo Yang2017-12-12
| | | |
| | | * Add PROTOBUF_ENABLE_TIMESTAMP to let user decide whether timestamp utilGravatar Bo Yang2017-12-12
| | |/ | |/| | | | | | | can be used at install time.
| | * Add backslach to make class explict in global namespaceGravatar Bo Yang2017-12-11
| | |
| * | Merge branch '3.5.0.1' into 3.5.xGravatar Bo Yang2017-12-11
| |\ \ | | |/ | |/|
| * | Recursively clear unknown fields in submessages. (#3982)Gravatar Paul Yang2017-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Recursively clear unknown fields in submessages. * Recursively discard unknown fields in submsg for c extension * Fix zts build * Add comment for tests * Add a TODO to add a util for encoding varint for better readability. * Add test for oneof message field.
| | * Add release logGravatar Bo Yang2017-12-06
| | |
| | * Update php c extension version number to 3.5.0.1Gravatar Bo Yang2017-12-06
| | |
| | * Fix memory leak in php7Gravatar Bo Yang2017-12-06
| | |
| | * Fix several more memory leakGravatar Bo Yang2017-12-06
| | |
| | * Fix memory leak when creating map field via array.Gravatar Bo Yang2017-12-06
| | |