Nikita Popov
49327e2e15
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Improve exif tag name fetching
Implement a cache for exif tag name lookups
Limit the amount of errors generated during exif parsing
2019-10-18 16:55:46 +02:00
Nikita Popov
650115c827
Improve exif tag name fetching
2019-10-18 16:55:05 +02:00
Nikita Popov
56e3e6f135
Implement a cache for exif tag name lookups
2019-10-18 16:54:56 +02:00
Nikita Popov
e5324a2484
Limit the amount of errors generated during exif parsing
...
Emitting errors is fairly expensive, to the point that parsing
a file with a huge number of invalid tags can take seconds.
Generating ten thousand errors is unlikely to help anybody, but
constitutes a potential DOS vector.
2019-10-18 16:54:49 +02:00
Christoph M. Becker
43a1363a05
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix test case
2019-10-18 16:24:14 +02:00
Christoph M. Becker
81806db90b
Fix test case
...
Cf. <https://github.com/php/php-src/pull/4687 >.
2019-10-18 16:23:56 +02:00
Christoph M. Becker
2484f1e88a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:33:58 +02:00
Christoph M. Becker
197568d634
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:33:25 +02:00
Christoph M. Becker
c7c7ab53ac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:32:08 +02:00
m.yakunin
d2cde0bfd3
Fix #70153 \DateInterval incorrectly unserialized
...
Added a separate macro for reading 'days' property, so that bool(false)
is correctly converted to the proper internal representation.
2019-10-18 15:31:14 +02:00
Christoph M. Becker
ecc9588d0c
Properly handle non resources passed to socket_select()
...
As of PHP 8.0.0, failing `zend_fetch_resource_ex()` throws a TypeError,
so we cannot simply skip non resources in the `$read`, `$write` and
`$except` arrays. Instead we bail out. Since these arrays are already
checked in `php_sock_array_to_fd_set()`, we remove the additional check
in `php_sock_array_from_fd_set()`.
2019-10-18 14:16:25 +02:00
Christoph M. Becker
04d5086578
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Update array access syntax deprecated
2019-10-17 23:40:30 +02:00
Alex Porto dos Santos
a6a2d167d8
Update array access syntax deprecated
...
Update array access syntax deprecated in line 175 and 204
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 175
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 204
2019-10-17 23:39:55 +02:00
Dmitry Stogov
605e0de357
Clenup "smart branch" handling
2019-10-18 00:11:30 +03:00
Dmitry Stogov
65c4cc231d
Fixed wrong shift
2019-10-17 23:31:47 +03:00
Nikita Popov
e80934d747
Pass cache slot when printing type errors
...
Instead of using a separate ce.
2019-10-17 17:06:48 +02:00
Nikita Popov
9a634a9c6b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Integrate property types with variance system
2019-10-17 13:42:47 +02:00
Nikita Popov
cf85eb2468
Integrate property types with variance system
...
Property types are invariant, but may still have to load classes in
order to check for class aliases. This class loading should follow
the same rules as all other variance checks, rather than just
loading unconditionally.
This change integrates property type invariance checks into the
variance system as a new obligation type, and prevent early binding
if the type check cannot be performed.
2019-10-17 13:37:04 +02:00
Dmitry Stogov
3df64af965
Relay on DO_ICALL/DO_UCALL opcode to avoid generation of useless code
2019-10-17 12:55:36 +03:00
Dmitry Stogov
3a88c5b87a
Fixed exception handling
2019-10-16 22:38:01 +03:00
Fabien Villepinte
86c33b8ddd
Merge branch 'PHP-7.4'
2019-10-16 20:53:52 +02:00
Fabien Villepinte
8b160f530c
Change port to avoid collision with others tests
...
The 64321 port is already used with the ext/openssl tests.
2019-10-16 20:50:54 +02:00
Dmitry Stogov
5431837a6c
Clenup "smart branch" handling
2019-10-16 12:28:30 +03:00
Dmitry Stogov
51da02375a
Fixed exception handling
2019-10-16 02:36:06 +03:00
Dmitry Stogov
902b00e68e
Fixed exception source
2019-10-16 01:26:35 +03:00
Derick Rethans
087d8cd214
Merge branch 'PHP-7.4'
2019-10-15 21:01:05 +01:00
Derick Rethans
3f7cc8361c
Merge branch 'PHP-7.3' into PHP-7.4
2019-10-15 21:00:57 +01:00
Derick Rethans
3725a446ba
Import timelib version 2018.03
2019-10-15 21:00:39 +01:00
Fabien Villepinte
3d22c80fc2
Test an error case with DOMDocument::createEntityReference
2019-10-15 21:56:44 +02:00
Sara Golemon
b8bf8a4372
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Silence undefined index warning when openssl not available.
2019-10-15 15:38:24 -04:00
Sara Golemon
15d7cd9e18
Silence undefined index warning when openssl not available.
2019-10-15 15:37:56 -04:00
Christoph M. Becker
6ff5316c7f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Prevent parallel testing conflicts
2019-10-15 16:30:07 +02:00
Christoph M. Becker
8e06504e94
Prevent parallel testing conflicts
...
disk_free_space_basic.phpt already uses this directory, so we rename
it.
2019-10-15 16:29:46 +02:00
Christoph M. Becker
8f0a9199ee
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Update NEWS for 7.4.0RC5
Update NEWS for PHP 7.4.0RC4
2019-10-15 16:28:04 +02:00
Christoph M. Becker
273731fb76
Add Zend class/interface arginfo stubs
...
We also change `Generator::throw()` to expect a `Throwable` in the
first place, and we now throw a TypeError instead of returning `false`
from `Exception::getTraceAsString()`.
2019-10-15 16:21:00 +02:00
Derick Rethans
6e2635d2f2
Update NEWS for 7.4.0RC5
2019-10-15 11:29:33 +00:00
Derick Rethans
998be7752c
Update NEWS for PHP 7.4.0RC4
2019-10-15 11:28:15 +00:00
Nikita Popov
5c24f8042d
Promote "Cannot use parent" to fatal error
2019-10-15 11:46:48 +02:00
Dmitry Stogov
0d55456d73
Use "const" qualifier
2019-10-15 11:06:11 +03:00
Dmitry Stogov
cef1960ce7
Use "const" qualifier
2019-10-14 21:49:08 +03:00
Dmitry Stogov
5213612359
Fixed compilation warning
2019-10-14 21:47:46 +03:00
Dmitry Stogov
2958fecb8b
Fixed incorrect JIT compilation
2019-10-14 21:32:10 +03:00
Joe Watkins
f8e3970ff0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix checksum calculation for opcache
2019-10-14 16:50:56 +02:00
Joe Watkins
042e3b227e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix checksum calculation for opcache
2019-10-14 16:50:23 +02:00
Joe Watkins
22ac57b064
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix checksum calculation for opcache
2019-10-14 16:49:48 +02:00
Mitch Hagstrand
e2a6bf482f
Fix checksum calculation for opcache
2019-10-14 16:46:42 +02:00
Nikita Popov
4e563e6c95
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix handling of overflowing invalid octal in tokenizer
2019-10-14 16:37:27 +02:00
Nikita Popov
641f9615cc
Fix handling of overflowing invalid octal in tokenizer
...
If token_get_all() is used, we still need to correctly distinguish
LNUMBER vs DNUMBER here for backwards compatibility.
2019-10-14 16:36:27 +02:00
Dmitry Stogov
3f50922aee
Fixed incorrect JIT compilation
2019-10-14 16:45:58 +03:00
Dmitry Stogov
4273865bba
Drop checkpoint that leaded to use after free
2019-10-14 13:37:22 +03:00