Nikita Popov
8a03fd6a5e
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 17:52:35 +02:00
Nikita Popov
19e6abebc7
Check for object_init_ex() failure in user filter factory
2019-10-07 17:52:29 +02:00
Nikita Popov
2624c9a505
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-07 16:44:31 +02:00
Nikita Popov
7d19668f60
Set session.gc_probability=0 in bug78624.phpt
...
We only want to test manually triggered session GC.
Avoid spurious output due to automatic GC.
2019-10-07 16:43:19 +02:00
Nikita Popov
ab61d5caf9
Backport fix for uaf during pcre jit fallback
...
Backports parts of https://vcs.pcre.org/pcre2?view=revision&revision=1175
fixing https://bugs.exim.org/show_bug.cgi?id=2453 .
2019-10-07 13:23:56 +02:00
Christoph M. Becker
3322c78a88
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:17:29 +02:00
Christoph M. Becker
114c03b9a6
Fix #78623 : Regression caused by "SP call yields additional empty result set"
...
This reverts commit 41a4379cb4 .
2019-10-07 09:15:51 +02:00
Nikita Popov
239e2dda64
Make sure T_ERROR is returned for all lexer exceptions
...
This originally manifested as a leak in oss-fuzz #18000 . The following
is a reduced test case:
<?php
[
5 => 1,
"foo" > 1,
" " => "" == 0
];
<<<BAR
$x
BAR;
Because this particular error condition did not return T_ERROR,
EG(exception) was set while performing binary operation constant
evaluation, which checks exceptions for cast failures.
Instead of adding this indirect test case, I'm adding an assertion
that the lexer has to return T_ERROR if EG(exception) is set.
2019-10-04 22:42:14 +02:00
Nikita Popov
1d6e9da743
Improve diagnostic on PCRE JIT mmap failure
...
Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to work around it.
Also automatically disable the JIT, so that this message is
only shown once.
See bug #78630 .
2019-10-04 16:03:38 +02:00
Christoph M. Becker
1ce8c805e2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Split intl tests for ICU 65
2019-10-04 13:53:58 +02:00
Christoph M. Becker
545412a6cd
Split intl tests for ICU 65
2019-10-04 13:53:22 +02:00
Christoph M. Becker
cf183a5e2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-04 09:09:39 +02:00
Christoph M. Becker
abaf9a76dc
Fix #78620 : Out of memory error
...
The integer addition in `ZEND_MM_ALIGNED_SIZE_EX` can overflow, what we
have to catch early.
2019-10-04 09:08:01 +02:00
Joe Watkins
f45eb353d1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:29 +02:00
Brent Shaffer
a6d219630c
fix #78624 : session_gc return value for user defined session handlers
2019-10-04 06:12:02 +02:00
Joe Watkins
f4d078b1c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:57:05 +02:00
Fábio Souto
9a2b42a5c1
Fix bug #76809 (SSL settings aren't respected when persistent connection is reused)
2019-10-03 06:56:21 +02:00
Joe Watkins
5b1bb23edf
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #76859 stream_get_line skips data if used with data-generating filter
2019-10-03 06:51:10 +02:00
Konstantin Kopachev
05560b67bc
Fix #76859 stream_get_line skips data if used with data-generating filter
...
stream_get-line repeatedly calls php_stream_fill_read_buffer until
enough data is accumulated in buffer. However, when stream contains
filters attached to it, then each call to fill buffer essentially
resets buffer read/write pointers and new data is written over old.
This causes stream_get_line to skip parts of data from stream
This patch fixes such behavior, so fill buffer call will append.
2019-10-03 06:50:43 +02:00
Derick Rethans
0505fbf2e5
Updated to version 2019.3 (2019c)
2019-10-02 23:39:09 +01:00
Christoph M. Becker
d295e1dce2
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Revert "Fix #78620 : Out of memory error"
2019-10-02 19:02:28 +02:00
Christoph M. Becker
f2fb37a772
Revert "Fix #78620 : Out of memory error"
...
This reverts commit 8ce04df7e0 .
Cf. <https://github.com/php/php-src/pull/4766#discussion_r330658679 >.
2019-10-02 19:01:35 +02:00
Christoph M. Becker
752a34fb2c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78620 : Out of memory error
2019-10-02 18:20:09 +02:00
Christoph M. Becker
8ce04df7e0
Fix #78620 : Out of memory error
...
If the integer addition in `ZEND_MM_ALIGNED_SIZE_EX` overflows, the
macro evaluates to `0`, what we should catch early.
2019-10-02 18:18:52 +02:00
Nikita Popov
3c42471ef8
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-02 12:07:19 +02:00
Nikita Popov
a5d3620d93
Fix segfault with __COMPILER_HALT_OFFSET__ and trailing {}
...
Fixes OSS-Fuzz #17895 .
2019-10-02 12:07:15 +02:00
Dmitry Stogov
f7596d1b5b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:57:16 +03:00
Dmitry Stogov
3124129ca8
Fixed test that "fails" from time to time
2019-10-02 00:54:59 +03:00
Dmitry Stogov
848bc776ea
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed test that "fails" from time to time
2019-10-02 00:49:27 +03:00
Dmitry Stogov
2fcb5eadbb
Fixed test that "fails" from time to time
2019-10-02 00:48:42 +03:00
Christoph M. Becker
2fc5d00afa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing skip keyword in tests
2019-10-01 11:15:12 +02:00
Fabien Villepinte
209e37db7d
Add missing skip keyword in tests
2019-10-01 11:13:36 +02:00
Nikita Popov
0805e132b0
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-30 15:06:32 +02:00
Nikita Popov
6fcde56b03
Fixed bug #78612
2019-09-30 15:06:07 +02:00
Christoph M. Becker
2046b3ce4f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78609 : mb_check_encoding() no longer supports stringable objects
2019-09-30 13:04:54 +02:00
Sergei Turchanov
e546d721e8
Fix #78413 : php-fpm request_terminate_timeout does not take effect after fastcgi_finish_request
...
To retain legacy behavior I decided to add an option to control request
termination logic. If request_terminate_timeout_track_finished is set,
then request will be tracked for time limits even after
fastcgi_finish_request was called.
This patch depends on the fix provided in BUG 78469 (otherwise php-fpm
workers listening on named pipes on Windows will be erroneously terminated)
(PR #4636 )
2019-09-30 12:54:09 +02:00
Christoph M. Becker
45db6fa567
Fix #78609 : mb_check_encoding() no longer supports stringable objects
...
We apply type juggling for other types than array.
2019-09-30 12:42:04 +02:00
Christoph M. Becker
466f91bb3b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix build for libzip < 0.11.2
2019-09-29 13:34:16 +02:00
Christoph M. Becker
f6bfbe9553
Fix build for libzip < 0.11.2
...
We must not define method entries, if the actual method definitions or
the arginfo structures are not defined.
2019-09-29 13:33:18 +02:00
Nikita Popov
7df50ef147
Don't throw warnings during heredoc scan-ahead
...
Otherwise these warnings will turn up twice (or more...)
2019-09-28 17:15:36 +02:00
Christoph M. Becker
66c48e8694
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix SKIPIF in ext/mysqli
2019-09-27 16:04:00 +02:00
Fabien Villepinte
37d27e666a
Fix SKIPIF in ext/mysqli
2019-09-27 16:03:20 +02:00
Christoph M. Becker
878704ff6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix skipif.inc
2019-09-27 12:51:21 +02:00
Christoph M. Becker
115f6effec
Fix skipif.inc
2019-09-27 12:50:04 +02:00
Nikita Popov
91c4abcfcc
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 13:47:19 +02:00
Nikita Popov
ab938d7bbc
Fix memory leak with ** on array operands
2019-09-26 13:45:45 +02:00
Nikita Popov
99c67804d5
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-26 10:25:40 +02:00
Nikita Popov
8a9df88597
Fix null-pointer deref in if stmt printing
...
Fixes OSS-Fuzz #17721 .
2019-09-26 10:24:49 +02:00
Nikita Popov
915fe2fdc6
Merge branch 'PHP-7.2' into PHP-7.3
2019-09-25 10:34:25 +02:00
Jinesh Patel
d2331cc3f2
Fix hash key length in umsg_parse_format()
...
Fix array length passed to zend_hash_str_find_ptr() casting from
UChar array to char array requires mul by sizeof(UChar).
2019-09-25 10:30:33 +02:00