aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/tests/memory_leak_test.php
Commit message (Collapse)AuthorAge
* Fix php memory leak test (#4692)Gravatar Paul Yang2018-05-29
|
* 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
* 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
* 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.
* Replace private timelib_update_ts with public date_timestamp_getGravatar Bo Yang2017-12-12
|
* 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
|
* Fix memory leak when creating repeated field via array.Gravatar Bo Yang2017-12-06
|
* Reserve unknown fields in php (#3659)Gravatar Paul Yang2017-10-09
| | | | | | | | | | | | | | | | | | | | | | * Reserve unknown fields in upb 1) For decoding, an unknownfields will be lazily created on message, which contains bytes of unknown fields. 2) For encoding, if the unknownfields is present on message, all bytes contained in it will be serialized. * Register the function to encode unknown field at decode time. * Remove upb_handlers_setaddunknown * Use upb_sink_putunknown in decoder * Remove upb_pb_encoder_encode_unknown * Do not expose encode_unknown * Implement reserve unknown field in php Implement. * Make buffer private to CodedInputStream
* Use message name as defined in php runtime.Gravatar Bo Yang2017-08-21
|
* 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
* 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 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
* Add new file option php_namespace. (#3162)Gravatar Paul Yang2017-06-05
| | | | | | | | | | | | | | | | * Add new file option php_namespace. Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace. * Uncomment commented tests * Revert gdb test change * Update csharp descriptor. * Add test for empty php_namespace.
* Add ARRAY for reserved name (#3150)Gravatar Paul Yang2017-05-29
|
* Prepend "PB" to generated classes whose name are reserved words. (#2990)Gravatar Paul Yang2017-04-20
|
* Add test for nested enum for php (#2989)Gravatar Paul Yang2017-04-19
|
* Enum defined without package have incorrect class name. (#2988)Gravatar Paul Yang2017-04-19
| | | | Fix the bug by sharing the code for generating class name for both message and enum.
* Make PHP c extension work with PHP7 (#2951)Gravatar Paul Yang2017-04-19
|
* Add file option php_class_prefix (#2849)Gravatar Paul Yang2017-03-17
| | | | This option will be prepended to generated classes of all messages in the containing file.
* 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.
* 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.
* 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.