Brent Shaffer
ce57b5bab6
fix: [PHP] add missing reserved classnames ( #9458 )
...
* fix: add missing reserved classnames
* Try to remove PARENT and SELF from reserved constants
* add back for tests
* add to validConstantNames
* update kReservedNamesSize
3 years ago
David Supplee
dfcbdb8ca0
fix: use E_USER_ERROR for trigger_error calls ( #9462 )
...
* fix: use E_USER_ERROR for trigger_error calls
* fix: use E_USER_ERROR for trigger_error calls
3 years ago
Joshua Haberman
dce403a8b3
Sync from Piper @427369078
...
PROTOBUF_SYNC_PIPER
3 years ago
deannagarcia
a6a66a9ac8
Update package.xml
...
Have PHP release notes link back to general release notes .
3 years ago
Adam Cozzette
22d0e265de
Update protobuf version for 3.19.4 ( #9449 )
...
I also updated the PHP release notes in
php/ext/google/protobuf/package.xml.
3 years ago
Joshua Haberman
67995fb4e9
Fixed data loss bug with PHP C extension.
3 years ago
Maximilian
82372d8fe6
Use proper SPDX license identifier ( #9441 )
...
The previously used term "3-Clause BSD License" is not properly
standarized. A common standard is SPDX, therefore "3-Clause BSD License"
is substituted with "BSD-3-Clause" which is a SPDX identifier.
`grep -rl "3-Clause BSD License" | xargs -n1 sed -i "s/3-Clause BSD
License/BSD-3-Clause/g"`
3 years ago
Brett McBride
a78b89ef2a
removing ext-bcmath require
...
I think it _should_ be required, but a test (linux, 32bit, 7.0-zts) is choking
on composer install, so putting things back to how I found them
3 years ago
Brett McBride
3e724d8a2e
formatting
3 years ago
Brett McBride
6a3f3840f6
tidy
3 years ago
Brett McBride
110d6c10b2
polyfill ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX
3 years ago
Brett McBride
c62cbe97de
working 7.0 extension
3 years ago
Brett McBride
f689268ca3
fixing typo in comment
3 years ago
Brett McBride
bfe33d7d08
php 7.0 support
...
instead of using the void return type, add more ReturnTypeWillChange annotations
3 years ago
Brett McBride
9e65df20a7
bump extension min version to 7.2
...
The macro ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX changed in 7.2, so it cannot be used in a compatible
way with earlier versions
3 years ago
Brett McBride
0476a893e2
conditionally adding mixed return type
...
With guidance from Remi Collet, use ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_EX macro, and use a conditional to fake that macro
for earlier php versions. Tested on 8.1 and 7.4, and deprecation notices gone plus all tests pass
3 years ago
Adam Cozzette
cc7b1b5323
Update protobuf version
3 years ago
Brett McBride
558d128fc7
require bcmath
...
bcmath (specifically, the bccomp function) is internally required, and tests fail if it's not available
3 years ago
Brett McBride
fabe73db6f
adding return type hints to php ext
3 years ago
Adam Cozzette
eb94f17a8b
Update protobuf version
3 years ago
Brett McBride
c26b1c87d7
fixing php 8.1 deprecation warnings
...
php 8.1 is more strict, and raises some deprecation notices with existing protobuf code. Not all of the
deprecations can be fixed without dropping support for php7.x (eg, the 'mixed' type doesn't appear until
8.1, and union types until 8.0, but as an interim solution the 'ReturnTypeWillChange' attribute can be
used to suppress the notices. In passing, also be explicit about a cast from float to int in 'zigZagEncode64'
which 8.1 also complains about when running tests.
3 years ago
Adam Cozzette
7c40b2df1f
Update protobuf version ( #9167 )
3 years ago
Adam Cozzette
1c8ae24595
Update changelog for 3.19.1
...
I also updated CHANGES.txt to include a couple things I forgot to add
for 3.19.0.
3 years ago
Chris Bainbridge
65852d6e9c
Fix comment syntax in any.proto ( #8792 )
...
* Fix comment syntax in any.proto
Remove extra spaces which cause incorrect indentation in godoc.
Remove the "====" style title which is not rendered by godoc.
* Run ./generate_descriptor_proto.sh
3 years ago
Adam Cozzette
17b30e9647
Update protobuf version ( #9119 )
3 years ago
Adam Cozzette
3f3e6f47c6
Update version to 3.19.0-rc2 and fix changelog about Java 7 ( #9116 )
...
* Update protobuf version
* Update CHANGES.txt to reflect that we're not yet dropping Java 7
3 years ago
Adam Cozzette
53a1d66d9d
Update PHP release notes for 3.19.0 ( #9110 )
3 years ago
Adam Cozzette
519340d662
Update protobuf version ( #9106 )
3 years ago
Josh
8171716ae9
Added "object" as a reserved name for PHP ( #8962 )
...
* Added "object" as a reserved name for PHP
* Fixed spacing
3 years ago
Adam Cozzette
0dab03ba7b
Update protobuf version to 3.18.1 ( #9051 )
...
* Update protobuf version
* Update PHP release notes in package.xml
3 years ago
Paul Yang
12fb2b7450
Update protobuf version ( #8973 )
...
* Update protobuf version
* Update php notes
3 years ago
Joshua Haberman
26e0ee8eec
Fixed multirequest.sh script for when nohup.out does not exist.
3 years ago
Joshua Haberman
759a539736
Fixed PHP SEGV when constructing messages from a destructor.
...
This also fixes the keep_descriptor_pool_after_request option, which
was not working properly.
3 years ago
Joshua Haberman
44df0abc02
Added support for PHP 8.1 (currently in RC1).
3 years ago
Joshua Haberman
e5c570bb57
Sync from Piper @395706834
...
PROTOBUF_SYNC_PIPER
3 years ago
Bo Yang
d8f55782b0
Update protobuf version
3 years ago
Paul Yang
7cbc08615f
Update protobuf version ( #8887 )
3 years ago
Bo Yang
509aee4b8b
Sync from Piper @391414001
...
PROTOBUF_SYNC_PIPER
3 years ago
Deanna Garcia
9b7685436b
Removing php workaround
3 years ago
Adam Cozzette
75680f8a70
Remove the _build directory before building protoc
3 years ago
Adam Cozzette
ed1d7443ff
Make generate_test_protos.sh echo commands
3 years ago
Adam Cozzette
562fc946c7
Sync from Piper @388508285
...
PROTOBUF_SYNC_PIPER
3 years ago
Joshua Haberman
c5960fdcf5
Removed PHP support for third_party/wyhash in favor of ABSL wyhash.
3 years ago
Joshua Haberman
9d578a3a9c
Ported Ruby to ABSL wyhash.
3 years ago
Brent Shaffer
2126123b53
PHP: add new keywords to missing test ( #8801 )
3 years ago
Brent Shaffer
d2c82dff39
fix: missing comma in PHP names.c and generator.cc ( #8787 )
...
* Update names.c
* Update php_generator.cc
3 years ago
Brent Shaffer
d995c1c182
update counts
3 years ago
Brent Shaffer
bade043986
update reserved names: add finally, fn, match, yield
3 years ago
Paul Yang
b24d0c2b7a
Disable the warning for adding duplicated symbol ( #8720 )
...
When we need to aggregate metadata, duplication does happen.
Disable the warning for now to mitigate the noise for users of aggregate
metadata.
4 years ago
Deanna Garcia
367851d124
Update protobuf version
4 years ago