Nikita Popov
1ea58832e2
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix bug #81472 : Support large device major/minor number
2021-09-24 09:58:29 +02:00
Nikita Popov
2b0288b220
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix bug #81472 : Support large device major/minor number
2021-09-24 09:58:22 +02:00
Lin Yang
9ad8fadcbb
Fix bug #81472 : Support large device major/minor number
...
Latest linux kernel use large number (12 bits for major device, 20
bits for minor device). Current code only supports previous standard
(5 chars), which means 8 bits for major and 8 bits for minor device.
It will fail if device number is out of that range. So this patch
increases device number read from /proc/self/maps file.
Closes GH-7512.
2021-09-24 09:57:32 +02:00
Nikita Popov
9bf21a446a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Avoid shell for proc_terminate() test
2021-09-24 09:47:06 +02:00
Nikita Popov
2323dc2ac7
Avoid shell for proc_terminate() test
...
Otherwise we're sending the signal to the shell, not the sleep
process, and it will continue sleeping.
This also illustrates a minor issue without our array proc_open()
support: We don't preserve the passed arguments in the
proc_get_status() output.
2021-09-24 09:45:49 +02:00
Nikita Popov
605ac4649c
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Use ASCII lower case for misc case folding
2021-09-24 09:23:18 +02:00
Tim Starling
c96be7b8f2
Use ASCII lower case for misc case folding
...
Use ASCII case conversion instead of locale-dependent case conversion in
the following places:
* grapheme_stripos() and grapheme_strripos() in the "fast" path
* ldap_get_entries()
* oci_pconnect() for case folding of parameters when constructing a key
into the connection or session pool
* SoapClient: case folding of function names
* get_meta_tags(): case conversion of property names
* http stream wrapper: header names
* phpinfo(): anchor names
* php_verror(): docref URLs
* rfc1867.c: Content-Type boundary parameter name
* streams.c: stream protocol names
Using locale-dependent case folding for these cases is either
unnecessary or actively incorrect. These functions could have
misbehaved when used with certain locales (e.g. Turkish).
Closes GH-7511.
2021-09-24 09:20:08 +02:00
Dmitry Stogov
fd5b3ab3ea
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fixed typo
2021-09-24 09:21:14 +03:00
Dmitry Stogov
92d0abd075
Fixed typo
2021-09-24 09:20:57 +03:00
Christoph M. Becker
3cd5f2685b
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix gdAlphaMax limit typo
2021-09-23 23:20:26 +02:00
Christoph M. Becker
67131e453b
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix gdAlphaMax limit typo
2021-09-23 23:20:00 +02:00
Christoph M. Becker
c0dcd141a8
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix gdAlphaMax limit typo
2021-09-23 23:18:52 +02:00
Michael Voříšek
2c3dfe5160
Fix gdAlphaMax limit typo
...
Closes GH-7410.
2021-09-23 23:16:40 +02:00
Dmitry Stogov
f024119718
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Tracing JIT: Fixed possible incorrect megamorphic call from a trait
2021-09-23 23:41:35 +03:00
Dmitry Stogov
c7c7620918
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Tracing JIT: Fixed possible incorrect megamorphic call from a trait
2021-09-23 23:41:11 +03:00
Dmitry Stogov
3e6919cfb3
Tracing JIT: Fixed possible incorrect megamorphic call from a trait
2021-09-23 23:38:03 +03:00
Nikita Popov
c37b35fa41
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Use locale-independent case conversion in mb_send_mail()
2021-09-23 17:21:14 +02:00
Nikita Popov
46315defc7
Use locale-independent case conversion in mb_send_mail()
...
Headers should not be processed in a locale-depdendent fashion.
Switch from upper to lowercasing because that's the standard for
PHP and we provide an ASCII implementation of this operation.
This is adapted from GH-7506.
2021-09-23 17:20:54 +02:00
Mahmood Dhia
ac34648cf6
Fix DATE_FORMAT_COOKIE definition
...
In all of http://curl.haxx.se/rfc/cookie_spec.html ,
https://docs.microsoft.com/de-de/windows/win32/wininet/http-cookies
and https://tools.ietf.org/html/rfc7234#section-5.3 the cookie
datetime is specified as Mon, DD-Mon-YYYY HH:MM:SS GMT. However,
the current definition returns Monday, DD-Mon-YYY HH:MM:SS GMT.
Therefore, the "l" in "l, d-M-Y H:i:s T" must be changed to "D".
Closes GH-6783.
2021-09-23 16:01:04 +02:00
Dmitry Stogov
eb7734c91d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fixed register clobbering
2021-09-23 15:04:42 +03:00
Dmitry Stogov
a0bea10e5b
JIT: Fixed register clobbering
2021-09-23 15:04:05 +03:00
Dmitry Stogov
adc03652dd
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Tracing JIT: Remove incorrect assertion
2021-09-23 12:15:16 +03:00
Dmitry Stogov
5eb3e30867
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Tracing JIT: Remove incorrect assertion
2021-09-23 12:15:05 +03:00
Dmitry Stogov
430454268f
Tracing JIT: Remove incorrect assertion
2021-09-23 12:14:33 +03:00
Dmitry Stogov
f6282a60fc
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Tracing JIT: Fixed possible stack-buffer-overflow.
2021-09-23 10:52:26 +03:00
Dmitry Stogov
757c1277eb
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Tracing JIT: Fixed possible stack-buffer-overflow.
2021-09-23 10:52:17 +03:00
Dmitry Stogov
08100e81e5
Tracing JIT: Fixed possible stack-buffer-overflow.
2021-09-23 10:51:20 +03:00
Dmitry Stogov
760cfaade1
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fixed use-after-free introduced in f2ceb639b8
2021-09-23 10:38:12 +03:00
Dmitry Stogov
0f084387f8
Fixed use-after-free introduced in f2ceb639b8
2021-09-23 10:37:25 +03:00
Dmitry Stogov
ac2d85da4d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Remove weird condition
2021-09-23 01:13:39 +03:00
Dmitry Stogov
4317da35d3
Remove weird condition
2021-09-23 01:12:49 +03:00
Dmitry Stogov
2da8e00d4f
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Check for zend_shared_alloc() failures
2021-09-23 01:02:28 +03:00
Dmitry Stogov
114a0ffd19
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Check for zend_shared_alloc() failures
2021-09-23 01:01:26 +03:00
Dmitry Stogov
17a99f2b11
Check for zend_shared_alloc() failures
2021-09-23 01:00:50 +03:00
Máté Kocsis
0b524a56f5
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix a few more classsynopsis generation issues
2021-09-22 23:10:37 +02:00
Máté Kocsis
8168d312f9
Fix a few more classsynopsis generation issues
...
Closes GH-7480
2021-09-22 23:09:43 +02:00
Dmitry Stogov
7764d05c87
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fixed possible memory leak
2021-09-22 22:59:43 +03:00
Dmitry Stogov
b9f12d628f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
JIT: Fixed possible memory leak
2021-09-22 22:58:57 +03:00
Dmitry Stogov
09d4037a17
JIT: Fixed possible memory leak
2021-09-22 22:57:57 +03:00
Kamil Tekiela
5c13587aad
Remove php_mysqli_persistent_helper_once ( #7507 )
2021-09-22 18:58:51 +01:00
Nikita Popov
aa285a015f
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix ASSIGN_STATIC_PROP_REF type inference
2021-09-22 15:55:57 +02:00
Nikita Popov
2dc8c7b3a7
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix ASSIGN_STATIC_PROP_REF type inference
2021-09-22 15:55:42 +02:00
Nikita Popov
983a4fc4a3
Fix ASSIGN_STATIC_PROP_REF type inference
...
We were not inferring anything for the ASSIGN_STATIC_PROP_REF
result type at all, leaving it as an empty type. In the test
case this results in a live range being incorrectly eliminated,
but this could break in all kinds of other ways as well..
2021-09-22 15:55:25 +02:00
Dmitry Stogov
59c3a7fbd9
Merge branch 'PHP-8.1'
...
* PHP-8.1:
JIT: Fixed memory leak when opperand of ADD IS_VAR and IS_REFERENCE
2021-09-22 16:37:58 +03:00
Dmitry Stogov
c77c79a093
JIT: Fixed memory leak when opperand of ADD IS_VAR and IS_REFERENCE
2021-09-22 16:37:48 +03:00
Nikita Popov
0007c68202
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix JIT typed property inc/dec
2021-09-22 15:33:09 +02:00
Nikita Popov
560dafb50f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix JIT typed property inc/dec
2021-09-22 15:32:59 +02:00
Nikita Popov
770879702a
Fix JIT typed property inc/dec
...
This was leaking memory for pre-inc/dec of a refcounted typed
property if the result was not used.
The code to do this was unnecessarily complicated, we can base
this on the zend_jit_inc/dec_typed_prop() helper and copy to the
result afterwards.
2021-09-22 15:32:19 +02:00
Nikita Popov
62e0200f80
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Make IntlCalendar::roll() return type tentative
2021-09-22 15:01:11 +02:00
Nikita Popov
4fcca032e1
Make IntlCalendar::roll() return type tentative
...
This method did not have a type in PHP 8.0 and is not final, so
the new return type should be tentative.
2021-09-22 15:00:29 +02:00