aboutsummaryrefslogtreecommitdiff
path: root/php
Commit message (Collapse)AuthorAgeFilesLines
* Replace repo links.Feng Xiao2018-08-221-1/+1
|
* Merge pull request #5032 from TeBoring/json-wrapperJoshua Haberman2018-08-132-185/+589
|\ | | | | Fix json parsing of wrapper values
| * Fix json parsing of wrapper valuesBo Yang2018-08-102-185/+589
| |
* | Update generated descriptors.integrationFeng Xiao2018-08-0812-0/+192
| |
* | adding of hyperlink of the PHP (#4985)johnlow952018-08-021-1/+1
| |
* | Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-08-018-28/+51
|\ \ | |/ |/|
| * Updated version numbers to 3.6.1Adam Cozzette2018-07-271-1/+1
| |
| * Make assertEquals pass for message (#4947)Paul Yang2018-07-202-7/+14
| | | | | | | | 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.
| * Fix 32bit php testsBo Yang2018-07-154-20/+24
| |
| * Fix php testsBo Yang2018-07-153-0/+4
| |
| * fix for API change in PHP 7.3 (#4898)Paul Yang2018-07-127-20/+36
| |
* | Update Composer config in PHP module (#3829)Timothy Younger2018-07-231-2/+9
| | | | | | | | | | | | * Prevents installation of `phpunit/phpunit:^6` because the test cases in this project require `\PHPUnit_Framework_TestCase` which was removed in v6. Moves generated PHP classes for tests into autoload-dev so that they are not referenced in the dist autoload. Adds Composer scripts to run protoc with and without grpc. * update composer test target to use the same commands as generate_php_test_proto in tests.sh
* | php: Added nanosecond support for Timestamp (#3972)Leonard Hecker2018-07-206-38/+83
| | | | | | | | | | | | * php: Added nanosecond support for Timestamp * php: Fixed compatibility test
* | Fix 32bit php testsBo Yang2018-07-134-20/+24
| |
* | Fix php testsBo Yang2018-07-134-5/+6
| |
* | add JSON_UNESCAPED_UNICODE option (#4191)吕海涛2018-07-092-2/+2
| |
* | Enable ignoring unknown in json parsing in php (#4839)Paul Yang2018-07-093-49/+95
| | | | | | | | | | | | | | | | | | | | * Enable ignoring unknown in json parsing in php * Update generated descriptor files * Update failure list for other languages. * Remove unnecessary php files
* | Merge pull request #4827 from acozzette/merge-3-6-xAdam Cozzette2018-06-259-26/+157
|\ \ | | | | | | Merge 3.6.x branch into master
| * | Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-06-259-26/+157
| |\|
| | * Use legacy name in php runtime (#4741)v3.6.0.1Paul Yang2018-06-077-22/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)Paul Yang2018-06-062-4/+20
| | |
| | * Fix php memory leak test (#4692)Paul Yang2018-05-292-4/+18
| | |
| | * Fix array constructor in c extension for compatibility (#4667)Paul Yang2018-05-251-3/+3
| | | | | | | | | | | | | | | 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)Brent Shaffer2018-05-2573-498/+1273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.Bo Yang2018-05-253-85/+173
| | |
| | * PHP array constructors for protobuf messages (#4530)Brent Shaffer2018-05-2530-153/+1036
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)Paul Yang2018-05-253-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | rename duplicate testMessageSetNullFail function (#3669)Pat Moroney2018-06-251-1/+1
| | | | | | | | | | | | the testMessageSetNullFail function was declared twice. So I renamed one to testMessageSetNullFailMap
* | | Improved install command. (#4106)Vladimir Kovpak2018-06-251-1/+1
|/ / | | | | Added `-y` flag to `sudo apt-get` command.
* | Fix php memory leak test (#4692)Paul Yang2018-05-292-4/+18
| |
* | Fix array constructor in c extension for compatibility (#4667)Paul Yang2018-05-241-3/+3
| | | | | | | | | | 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)Brent Shaffer2018-05-2473-498/+1273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.Bo Yang2018-05-243-85/+173
| |
* | PHP array constructors for protobuf messages (#4530)Brent Shaffer2018-05-2430-153/+1036
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.protoAdam Cozzette2018-05-171-3/+5
| |
* | Adopt php_metadata_namespace in php code generator (#4622)Paul Yang2018-05-143-0/+4
|/ | | | | | | | | | | * 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)Paul Yang2018-05-112-0/+92
|
* Throw error if user want to access message properties (#4603)Paul Yang2018-05-102-2/+8
| | | | | | * Throw error if user want to access message properties * Fix typo
* Avoid direct check of class name (#4601)Paul Yang2018-05-101-7/+3
| | | | | | | | * 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)Petar Dambovaliev2018-04-301-1/+1
| | | | 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)urfinjuezz2018-04-091-1/+1
|
* includes the expected class in the exception, otherwise the error is harder ↵Brent Shaffer2018-04-091-1/+1
| | | | to track down (#3371)
* Merge branch (#4466)Paul Yang2018-04-022-4/+20
| | | | | | | | * 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)Paul Yang2018-03-082-195/+2783
|
* Convert descriptortype to type for upb_msgval_sizeof (#4357)Paul Yang2018-03-061-1/+1
|
* For encoding upb needs descriptor type instead of type. (#4354)Paul Yang2018-03-062-13/+13
|
* PHP: fixed typo in message.cAdam Cozzette2018-03-051-1/+1
|
* Merge pull request #4291 from google/3.5.xJisi Liu2018-02-268-49/+177
|\ | | | | Merge 3.5.x to master
| * Fix more memory leak for php c extension (#4211)Paul Yang2018-01-256-19/+109
| | | | | | | | | | | | * Fix more memory leak for php c extension * Fix memory leak for php5.5
| * Well known types are not initialized properly. (#4139)Paul Yang2018-01-053-30/+68
| | | | | | | | | | | | | | | | | | 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.