aboutsummaryrefslogtreecommitdiff
path: root/php/ext
Commit message (Collapse)AuthorAgeFilesLines
* Fix well known type class not inheriting Message (#5095)Paul Yang2018-08-311-2/+3
| | | | | | | | | * Fix well known type class not inheriting Message Previously, well known types only implement Message interface but not inhert it. Fix the problem by calling zend_do_inheritance * Add back commented tests
* Merge pull request #5032 from TeBoring/json-wrapperJoshua Haberman2018-08-131-185/+508
|\ | | | | Fix json parsing of wrapper values
| * Fix json parsing of wrapper valuesBo Yang2018-08-101-185/+508
| |
* | Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-08-017-28/+38
|\ \ | |/ |/|
| * Updated version numbers to 3.6.1Adam Cozzette2018-07-271-1/+1
| |
| * Make assertEquals pass for message (#4947)Paul Yang2018-07-201-7/+1
| | | | | | | | 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 php testsBo Yang2018-07-151-0/+1
| |
| * fix for API change in PHP 7.3 (#4898)Paul Yang2018-07-127-20/+36
| |
* | php: Added nanosecond support for Timestamp (#3972)Leonard Hecker2018-07-202-32/+74
| | | | | | | | | | | | * php: Added nanosecond support for Timestamp * php: Fixed compatibility test
* | Fix php testsBo Yang2018-07-131-0/+1
| |
* | 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
* Update php version to 3.6.0 (#4736)Paul Yang2018-06-062-4/+20
|
* Fix php memory leak test (#4692)Paul Yang2018-05-291-0/+1
|
* 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-252-91/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-251-4/+107
|
* Throw error if user want to access message properties (#4603)Paul Yang2018-05-101-1/+7
| | | | | | * Throw error if user want to access message properties * Fix typo
* 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
|
* Fix more memory leak for php c extension (#4211)Paul Yang2018-01-253-10/+48
| | | | | | * 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.
* Fix for php5.5Bo Yang2017-12-141-1/+1
|
* Accept DatetimeInterface in fromDatetimeBo Yang2017-12-142-12/+14
|
* Avoid using php_date_get_date_ce() in case date extension is notBo Yang2017-12-131-2/+15
| | | | available.
* Call php method via function name instead of calling directly.Bo Yang2017-12-122-29/+45
| | | | | | | 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.
* Replace private timelib_update_ts with public date_timestamp_getBo Yang2017-12-121-5/+19
|
* Add PROTOBUF_ENABLE_TIMESTAMP to let user decide whether timestamp utilBo Yang2017-12-121-1/+12
| | | | can be used at install time.
* Merge branch '3.5.0.1' into 3.5.xBo Yang2017-12-115-4/+43
|\
| * Add release logv3.5.0.1Bo Yang2017-12-061-0/+16
| |
| * Update php c extension version number to 3.5.0.1Bo Yang2017-12-062-4/+4
| |
| * Fix memory leak in php7Bo Yang2017-12-062-4/+9
| |
| * Fix several more memory leakBo Yang2017-12-063-4/+6
| |
| * Fix memory leak when creating map field via array.Bo Yang2017-12-061-2/+1
| |
| * Fix memory leak when creating repeated field via array.Bo Yang2017-12-061-2/+1
| |
| * Remove duplicate typedef. (#3975)Paul Yang2017-12-061-19/+7
| |
* | Recursively clear unknown fields in submessages. (#3982)Paul Yang2017-12-071-3/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Fix memory leak when creating map field via array.Bo Yang2017-12-041-2/+1
| |
* | Fix memory leak when creating repeated field via array.Bo Yang2017-12-011-2/+1
| |
* | Remove duplicate typedef. (#3975)Paul Yang2017-11-301-19/+7
| |
* | Provide discardUnknonwnFields API in php (#3976)Paul Yang2017-11-303-0/+11
| | | | | | | | | | | | * Provide discardUnknownFields API in php implementation * Provide discardUnknownFields API in php c extension.
* | Update version number for php c extension (#3896)Paul Yang2017-11-152-4/+20
|/
* Fix php well known type conformance tests (#3828) (#3840)Paul Yang2017-11-043-2/+75
| | | | | | | | | | | | | | | * 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 masterJisi Liu2017-10-114-13/+99
|\
| * Merge pull request #3612 from TeBoring/php-bugPaul Yang2017-09-153-8/+78
| |\ | | | | | | Add prefix to php reserved keywords.
| | * Exclude valid constant name from reserved name.Bo Yang2017-09-121-0/+1
| | |
| | * Change array to map for reserved names in c extensionBo Yang2017-09-113-24/+69
| | |
| | * Add prefix to php reserved keywords.Bo Yang2017-09-081-3/+27
| | |