Antony Dovgal
2e7771d7a0
read_property() handler is not supposed to return NULL
...
NULL is never expected as a result of read_property() handler,
it should return &EG(uninitialized_zval) if there is no such property in
the object
4 years ago
Adam Cozzette
983d115bd9
Update protobuf version
4 years ago
Adam Cozzette
d7e943b8d2
Update protobuf version
4 years ago
Adam Cozzette
052dc799d2
Update protobuf version
4 years ago
Adam Cozzette
133e5e7526
Update protobuf version
4 years ago
Adam Cozzette
de701c660b
Update protobuf version
4 years ago
Joshua Haberman
a94870872c
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
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
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
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
Joshua Haberman
d5079ed7db
Fixed PHP to support field numbers >=2**28. ( #8235 )
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
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
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
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
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
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
cae85a9f11
PHP: Added `==` operators for Map and Array. ( #7900 )
4 years ago
Joshua Haberman
f0942fb0a2
Equals passes tests in both pure-PHP and the C extension. ( #7883 )
4 years ago
Joshua Haberman
95e6c5b474
Sync from Piper @327110949
...
PROTOBUF_SYNC_PIPER
5 years ago
Paul Yang
93d8e89374
Fix version number in php macro ( #7822 )
...
Fixes #7812
5 years ago