Adam Cozzette
76bfd89090
Added PHP changes for 3.15.0 into package.xml
4 years ago
Adam Cozzette
ac9218c5d9
Update protobuf version
4 years ago
Adam Cozzette
ae50d9b990
Update protobuf version
4 years ago
Adam Cozzette
8260126500
Update protobuf version
4 years ago
Joshua Haberman
db66c95eaf
Added more information to "file already loaded" warning.
...
Also changed it to zend_error() so it is more easily suppressed.
4 years ago
Adam Cozzette
66e5185780
Added PHP changes for 3.15.0 into package.xml
4 years ago
Adam Cozzette
e9f2ef308c
Update protobuf version
4 years ago
Paul Yang
525be941e0
Add test for php5 for pure php implementation ( #8251 )
...
* Add test for php5 for pure php implementation
* Add php5.6 to docker image
* Add php5.6 to php 32-bit docker image
4 years ago
Joshua Haberman
cf28f28347
Updated upb to allow nonzero offset minutes in JSON timestamps. ( #8258 )
...
* Updated upb to allow nonzero offset minutes in JSON timestamps.
This is to pick up https://github.com/protocolbuffers/upb/pull/367
* Reverted error message change.
* Fixed quote chars.
4 years ago
Joshua Haberman
b3ea125b03
Fixed clone_obj for PHP8. ( #8252 )
...
PHP8 has a different method signature for clone_obj that takes a
zend_object* instead of a zval*.
4 years ago
Brent Shaffer
e75f552587
Update README.md
4 years ago
Joshua Haberman
f3e53a05d6
Fixed clone for Message, RepeatedField, and MapField. ( #8245 )
...
Also updated the code to use a TypeInfo struct for convenient
passing of type and desc together. This simplified a lot of code
and made this change easier to write.
4 years ago
Joshua Haberman
d18df4f764
Protect against stack overflow if the user derives from Message. ( #8248 )
...
* Protect against stack overflow if the user derives from Message.
* For pure-PHP, change error into an exception.
4 years ago
Christian Alexander Wolf
f4d0f7c85e
feat: add support for deprecated fields to PHP compiler ( #8223 )
...
* feat: add support for deprecated fields to PHP compiler
* PR feedback 1
4 years ago
Brent Shaffer
bd08f75586
fix: README supported PHP version for C extension
4 years ago
Joshua Haberman
d5079ed7db
Fixed PHP to support field numbers >=2**28. ( #8235 )
4 years ago
Brent Shaffer
468bc193ec
fix: convert native PHP floats to single precision ( #8187 )
...
* fix: convert native PHP floats to single precision
* fix unpack
4 years ago
Joshua Haberman
7089ff0ef2
Fix PhpDoc comments for message accessors to include "|null". ( #8136 )
...
Message accessors will return null when when the field is not
set, so this should be reflected in the PhpDoc.
Also updated the code generator for the well-known types to reflect
the edits made in https://github.com/protocolbuffers/protobuf/pull/8105 .
Also explicitly check for upb_msg_has() in the oneof accessor, so
we are not implicitly relying on unset message fields returning NULL
at the upb level.
4 years ago
Paul Yang
823f351448
Port for php8 ( #8105 )
...
* Port for php8
* Port php c extension for php8
* Update composer.json
* Drop php7.0 support
* Update phpunit for php7.1 in c extension test
* Add back support for php7.0
* Add badge for php8 continuous build
4 years ago
Mike Lehan
9ee163a5d7
Update param type on offsetGet ( #8033 )
...
The param was typed as `object` which is invalid as when items are set in the container the key passes through `checkKey` where it enforces the key must be various classes of integer, bool or string. Thus I have replaced it with a union type (in future this can be a proper PHP level typehint, but for now only doctype)
4 years ago
Antony Dovgal
51b620ac96
unregister INI entries and fix invalid read on shutdown ( #8042 )
4 years ago
Adam Cozzette
f3192d6128
Update protobuf version
4 years ago
Adam Cozzette
1b851b3fe6
Update protobuf version
4 years ago
Adam Cozzette
31f719618c
Added back in notes field in package.xml
...
This field turns out to be required and cannot be empty, so this commit
adds some placeholder text.
4 years ago
Adam Cozzette
a8ab1fade9
Update protobuf version
4 years ago
Adam Cozzette
42d0c53f5b
Fixed PHP version and release notes
...
This commit updates protobuf.c to refer to the PHP version macro so that
it stays up to date. I also deleted the notes element near the top of
package.xml. This seems to be a global notes field rather than a
per-release field, so it was showing up on new releases where it doesn't
make sense.
Fixes #8017 .
4 years ago
Joshua Haberman
6ef18e357a
[PHP] Fixes for package.xml: added/removed source files. ( #8022 )
...
These files should have been added/removed in
https://github.com/protocolbuffers/protobuf/pull/7944 , but
this was missed and Kokoro does not test "pear package".
4 years ago
Adam Cozzette
27100b40fd
Update protobuf version
4 years ago
Joshua Haberman
a8a1493f35
Moved HasOneof test into GeneratedClassTest.php, to avoid the extra file.
4 years ago
Andrei Nigmatulin
52d3be3276
added tests for hasOneof<Field>() php methods
4 years ago
Joshua Haberman
314ce3c8a0
PHP: Fix in upb for 32-bit platforms.
4 years ago
Andrei Nigmatulin
913e1ede12
add missing has<Field>() method for oneof fields
4 years ago
Joshua Haberman
78f56b84b5
Set -std=gnu99 for PHP extension compile.
4 years ago
Joshua Haberman
f65bcca31d
Added extra files to Makefile.am and fixed spelling errors.
4 years ago
Joshua Haberman
a6985e598c
New version of upb, and a new hash function wyhash in third_party.
4 years ago
Joshua Haberman
de371235c9
Sync from Piper @338284531
...
PROTOBUF_SYNC_PIPER
4 years ago
Joshua Haberman
8ea38263ec
Put NDEBUG in upb, not in CFLAGS.
4 years ago
Joshua Haberman
e1b42ab946
Disable assertions for release build.
4 years ago
Joshua Haberman
4936abe813
Fixed bug with oneofs in JSON decoding.
4 years ago
Joshua Haberman
d140b1cdce
Optimizations for loading of descriptors in PHP:
...
1. Eliminate hex2bin() call by putting binary data directly into PHP
strings.
2. upb optimizations, including a new hash function.
4 years ago
Paul Yang
0a648daaca
Use the https address for git clone ( #7951 )
...
The previous git address failed for no access
4 years ago
Paul Yang
d1eca4e4b4
Update version number to 3.13.0.1 for php ( #7950 )
4 years ago
Joshua Haberman
8308aa0c31
Properly terminate method array.
4 years ago
Joshua Haberman
5a98ff98d7
Create a separate InternalDescriptorPool method to see if that fixes preloading.
4 years ago
Joshua Haberman
e62cf76b94
Added missing base classes.
4 years ago
Joshua Haberman
05644f0313
Revert upb changes to minimize changes as we evaluate performance.
4 years ago
Joshua Haberman
ec4b194608
Regenerated protos with new script.
4 years ago
Joshua Haberman
cfc0c2b5e0
Passes all tests.
4 years ago
Joshua Haberman
a93d840881
WIP.
4 years ago
Joshua Haberman
a0eef68bbd
Regenerated well-known types and moved hand-written messages into base classes.
4 years ago