aboutsummaryrefslogtreecommitdiff
path: root/php/tests/test_util.php
Commit message (Collapse)AuthorAgeFilesLines
* PHP namespaces for nested messages and enums (#4536)Brent Shaffer2018-05-241-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Switch to addEnumType to fix fatal error (#3225)Ryan Gordon2017-06-191-130/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch to addEnumType to fix fatal error * Fixing more cases of HHVM incompatibility * Updating tests to be hhvm compatible * Fixing tests * Fixing merge * Don't use call_user_func, should hopefully fix tests * Fixing spelling * Fixing another misspelling in a test * Fixing placement of append and kvUpdate functions * Actually fix function helpers * Remove double addEnumType. How did this ever work? * Fixing a couple more tests * Only use the setter if the return value isn't an object
* Make PHP c extension work with PHP7 (#2951)Paul Yang2017-04-191-2/+1
|
* Bug fix: When encoding, negative int32 values should be padded to int64 (#2660)Paul Yang2017-03-151-6/+6
| | | in order to be wire compatible.
* Rename encode/decode to serializeToString/mergeFromString (#2795)Paul Yang2017-03-081-0/+81
| | | | | This better shows the semantic of the API. For already setted fields, mergeFromString do replacement for singular fields and appending for repeated fields.
* Add clear method to PHP message (#2700)Paul Yang2017-02-111-0/+7
|
* Fix pure php implementation for 32-bit machine. (#2282)Paul Yang2016-10-251-38/+83
|
* PHP: support 7.0 on PHP implementation (#2162)Stanley Cheung2016-10-101-1/+3
| | | | | | * PHP: support 7.0 * Also fix in test_util.php
* Check in php implementation. (#2052)Paul Yang2016-09-151-0/+393
This pull request includes two implementation: C extension and PHP package. Both implementations support encode/decode of singular, repeated and map fields.