vibhutisawant
481caf17bc
Fix Bug #79431 Various compiler warnings on Big endian architecture with GCC 5.4.0
...
Fix [-Werror=maybe-uninitialized] compilation warnings on big endian system
Closes GH-5373
2020-04-15 23:30:06 +02:00
Nikita Popov
dd163d05ff
Remove OP_RANGE_EX distinction
...
Only leave OP_RANGE macros, which always have the "EX" behavior.
This was already done for most other macros before, but these
were missed. This helps avoid mistakes by using the wrong macro.
2020-04-15 13:00:36 +02:00
Dmitry Stogov
99084262c3
Use proper macro
2020-04-15 13:09:55 +03:00
Dmitry Stogov
782dc8d73b
Removed unused parameter
2020-04-15 13:08:09 +03:00
Nikita Popov
fd5dc55759
Force short_open_tag=0 in run-tests.php
...
Make sure we don't accidentially add tests depending on short tags.
2020-04-15 11:27:03 +02:00
Nikita Popov
5e8be710ca
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix directory clash in tempnam_variation4 test
2020-04-15 11:25:18 +02:00
Nikita Popov
0a2fd0db3c
Fix directory clash in tempnam_variation4 test
2020-04-15 11:25:06 +02:00
Nikita Popov
72512418d5
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79477
2020-04-15 11:22:05 +02:00
Nikita Popov
58e6a0a602
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79477
2020-04-15 11:21:42 +02:00
Nikita Popov
79a36ff7f3
Fixed bug #79477
...
Make sure to deindirect properties when creating array.
2020-04-15 11:21:05 +02:00
Nikita Popov
d68dfaf05e
Remove return value from llist apply functions
...
Unlike the hash apply functions, these do not return int.
2020-04-15 11:01:12 +02:00
Nikita Popov
9043563775
Make zend_list_free return void
...
And assert that the refcount is zero. This function should only
be used internally as the resource destructor.
2020-04-15 11:01:12 +02:00
Nikita Popov
e15409b43c
Adjust zend_write_func signature
...
Make it return size_t instead of int, to line up with actual
implementation.
2020-04-15 11:01:12 +02:00
Nikita Popov
7643cf1996
More precise ifunc resolver return type
...
Fixes -Wattribute-alias warning.
2020-04-15 11:01:12 +02:00
Nikita Popov
fb718ccc7e
Suppress SIG_ERR cast warnings
...
By casting to void*. I don't want to deal with this right now.
2020-04-15 11:01:12 +02:00
Nikita Popov
2d517f68fb
Fix function signature mismatches in GMP
...
This is fairly annoying. Add adapter functions for cases where
we are discarding a return value.
Some of the issues are legitimate in that we were previously
truncating some unsigned long return values to int implicitly,
though I doubt it makes a difference in practice.
This fixes -Wcast-function-type warnings.
2020-04-15 11:01:12 +02:00
Nikita Popov
4d5ad3fb24
Fix PHP_HAVALUpdate signature
...
Fixes a -Wcast-function-type warning.
2020-04-15 11:01:12 +02:00
Nikita Popov
53e07bac79
Fix function libxml free error signature
...
Fixes a -Wcast-function-type warning.
2020-04-15 09:58:19 +02:00
Remi Collet
8e5df6092d
fix test using short_tag
2020-04-15 09:26:55 +02:00
Remi Collet
ed179c2ef4
workaround typo in system libgd 2.3.0
2020-04-15 09:07:21 +02:00
George Peter Banyard
1c334db4c8
Add -Wextra compiler warnings and exclude the trigger happy ones
...
The compile warnings which are explicitly suppressed are:
* -Wno-implicit-fallthrough
* -Wno-unused-parameter
* -Wno-sign-compare
* -Wno-clobbered, only with GCC
Closes GH-5151
2020-04-14 22:22:35 +02:00
George Peter Banyard
a2a6c7f227
Add -Wno-type-limits compiler flag to Sodium extension
...
This may happen on 32bits
2020-04-14 22:22:33 +02:00
George Peter Banyard
13938342f8
Add -Wno-ignored-qualifiers compiler flag to Tidy extension.
...
This is an issue in the provided library and needs to be fixed upstream.
2020-04-14 22:22:33 +02:00
Dmitry Stogov
ed1ad33ba4
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79472 : ext/ffi/tests/040.phpt TC fails on Big endian arch
2020-04-14 20:38:42 +03:00
Christoph M. Becker
8c5faf7ad1
Fix #79472 : ext/ffi/tests/040.phpt TC fails on Big endian arch
...
For now we are choosing the simplest solution, namely to skip the test
on big-endian architectures.
2020-04-14 20:31:31 +03:00
Christoph M. Becker
e88169e3bf
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing CVE
2020-04-14 18:20:58 +02:00
Christoph M. Becker
537680a9c4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing CVE
2020-04-14 18:19:34 +02:00
Christoph M. Becker
c4cdf1ae12
Add missing CVE
2020-04-14 18:18:18 +02:00
Nikita Popov
110e6e4f95
Make gen_stub.php compatible with PHP 7.1 again
...
Not worth bumping requirements over this...
2020-04-14 17:55:27 +02:00
Nikita Popov
177c455f04
Fix test after callback name change
2020-04-14 17:50:54 +02:00
Alex Dowad
907bf786f1
Remove XFAIL from tests for 'bug' 48770
...
Bug 48770 was opened due to conflicting expectations about the behavior of:
call_user_func_array(array($this, 'parent::methodName'), array($arg1,$arg2))
The one reporting the 'bug' seemed to think that since the method name was prefixed with
`parent::`, it should call the method in the superclass of the *class where this code appears*.
However, `$this` might be an instance of a subclass. If so, then it is quite reasonable that
`call_user_func_array` will call the method as defined in the superclass of *the receiver*.
So the 'bug' is not really a bug. Therefore, there is no need for an XFAIL in the tests. They
should just pass.
Amend tests to reflect the actual expected behavior of `call_user_func_array`, not what the
person who reported bug 48770 thought it should be.
Closes GH-5386.
2020-04-14 17:41:52 +02:00
Nikita Popov
7a185b5d0a
Fix filter_(var|input)_array default
2020-04-14 17:41:01 +02:00
George Peter Banyard
af63050071
Remove XFAIL section of a passing COM test
...
Closes GH-5297
2020-04-14 17:31:06 +02:00
Nikita Popov
4fb705a03d
Add zend_string_concat2 API
2020-04-14 17:18:05 +02:00
Sara Golemon
489a51bff0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79468
NEWS
2020-04-14 11:14:04 -04:00
Guillaume Charifi
adea221b1a
Improve socket cmsg space handling.
...
This should also fix the null pointer arithmetic warning on MacOS as we don't depend on whack code written by Apple.
Closes GH-5387
2020-04-14 17:10:21 +02:00
Nikita Popov
4a935bc2c9
Always use __invoke callable name for objects
...
The callable name is provided also if it's not callable, in which
case it's basically "what it would be if it were callable", which
is ClassName::__invoke. The current behavior of casting the object
to string makes very little sense as this will just throw an
exception for most objects.
2020-04-14 17:02:47 +02:00
Nikita Popov
bac5137e4e
Add zend_create_member_string() API
...
This is a recurring pattern.
2020-04-14 16:52:13 +02:00
Sara Golemon
3128714859
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79468
NEWS
2020-04-14 10:32:21 -04:00
Sara Golemon
2814850fd9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #79468
NEWS
2020-04-14 10:31:35 -04:00
dinosaur
13842eda37
Fixed bug #79468
...
Close the stream filter resources when removing them from the stream.
2020-04-14 10:27:28 -04:00
Sara Golemon
6df761b7ff
NEWS
2020-04-14 10:25:37 -04:00
Nikita Popov
d0006b5fac
Use UNKNOWN default for socket_connect()
...
Specifying the port is mandatory for INET sockets.
2020-04-14 16:09:01 +02:00
Nikita Popov
b9b2e8ddde
Fix socket_write() default value
2020-04-14 16:08:55 +02:00
Nikita Popov
e9bdbce53f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't leak peername if accept fails
2020-04-14 16:08:43 +02:00
Nikita Popov
912e490196
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Don't leak peername if accept fails
2020-04-14 16:08:07 +02:00
Nikita Popov
b56fb9019e
Don't leak peername if accept fails
...
Even if the accept fails, the peername may be populated.
2020-04-14 16:07:39 +02:00
George Peter Banyard
04ab4d09be
Add Intl resource bundle files for big-endian architecture.
...
Little and Big endian files have their own designated folder.
Both use the ASCII charset family.
We may want to add a big-endian/EBCDIC charset family resource bundle in the future.
The build script is currently left untouched as it seems to mostly be for Windows.
2020-04-14 15:30:01 +02:00
Máté Kocsis
1f48feebb9
Improve some TypeError and ValueError messages
...
Closes GH-5377
2020-04-14 14:38:45 +02:00
Dmitry Stogov
11c5c78401
Added missed '~'
2020-04-14 15:37:20 +03:00