George Wang
e4f6744552
Merge branch 'PHP-7.4'
2019-07-21 00:02:03 -04:00
George Wang
30de357fa1
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-21 00:01:39 -04:00
George Wang
82f35ab089
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-21 00:01:06 -04:00
George Wang
eb7e45f662
Checked in LiteSpeed SAPI 7.5, addressed two main problems in "clean shutdown" introduced in 7.4.3,
...
1. falls in an infinite loop because PHP engine's inconsistent state, now override the ITIMER_PROF to 0.1 second, clean shutdown must finish before that.
2. generate too much error log, we completely disable "error_reporting" before calling php_request_shutdown().
2019-07-20 23:59:43 -04:00
Nikita Popov
eb766751dc
Merge branch 'PHP-7.4'
2019-07-19 10:06:30 +02:00
rjhdby
d574df63dc
Deprecate alternative array access syntax
...
RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access
2019-07-19 10:06:10 +02:00
Peter Kokot
f33d12096d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove duplicate socklen_t check
2019-07-18 12:11:45 +02:00
Peter Kokot
bbdbc2658c
Remove duplicate socklen_t check
...
- Use Autoconf's default AC_CHECK_TYPES
Closes GH-4418
2019-07-18 12:11:19 +02:00
Nikita Popov
b32e9a9227
Merge branch 'PHP-7.4'
2019-07-17 10:41:34 +02:00
Nikita Popov
a986e70991
Avoid double buffering in Zend streams
...
Disable buffering in PHP streams, to avoid storing and copying the
file contents twice.
This will call stream_set_option() on custom stream wrapper as
well, so the method needs to be implemented to avoid a warning.
2019-07-17 10:40:04 +02:00
Nikita Popov
c4a6998c62
Merge branch 'PHP-7.4'
2019-07-16 17:45:03 +02:00
Nikita Popov
b317f0eb59
Remove ZEND_HANDLE_MAPPED
...
The buf/len members are now simply used in addition to the main
stream, without changing the handle kind.
2019-07-16 17:44:32 +02:00
Nikita Popov
e0eca26285
Drop free_filename field from zend_file_handle
...
free_filename was always zero.
2019-07-16 17:07:26 +02:00
Nikita Popov
3faa903d47
Merge branch 'PHP-7.4'
2019-07-16 16:44:46 +02:00
Nikita Popov
49bac9b77b
Introduce zend_stream_init_filename()
...
Avoid more ad-hoc initialization of zend_file_handle structures.
2019-07-16 16:44:37 +02:00
Nikita Popov
46faf8f018
Introduce zend_stream_init_fp() API
...
Reduce the amount of code that mucks around with zend_file_handle
initialization.
2019-07-16 16:44:37 +02:00
Nikita Popov
c562d71d12
Merge branch 'PHP-7.4'
2019-07-16 11:11:08 +02:00
Nikita Popov
ebfa05677b
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-16 11:11:00 +02:00
Nikita Popov
eea9d61763
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-16 11:10:51 +02:00
Nikita Popov
8a19fe29de
Fixed bug #78297
2019-07-16 11:09:17 +02:00
Nikita Popov
9207aef60c
Merge branch 'PHP-7.4'
2019-07-15 16:26:25 +02:00
Nikita Popov
c5f1b384b5
Move shebang handling into the lexer
...
Instead of handling shebang lines by adjusting the file pointer in
individual SAPIs, move the handling into the lexer, where this is
both a lot simpler and more robust. Whether the shebang should be
skipped is controlled by CG(skip_shebang) -- we might want to do
that in more cases.
This fixed bugs #60677 and #78066 .
2019-07-15 16:25:49 +02:00
Nikita Popov
74bf7bfb88
Merge branch 'PHP-7.4'
2019-07-11 15:49:02 +02:00
Nikita Popov
17f7fb7605
Switch to using shell-less proc_open() in various server tests
2019-07-11 15:48:10 +02:00
Nikita Popov
bbd12b3d30
Merge branch 'PHP-7.4'
2019-07-10 11:11:30 +02:00
Nikita Popov
dfe5fd2a37
Avoid invalid array access in fcgi.inc
2019-07-10 11:09:34 +02:00
Nikita Popov
5f0c8f5e30
Merge branch 'PHP-7.4'
2019-07-09 16:20:12 +02:00
David Carlier
aa0e29a668
CGI: Fix memory leak on error paths
2019-07-09 16:19:41 +02:00
Peter Kokot
35709b56e4
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove some more Apache 1 left overs
2019-07-07 12:10:59 +02:00
Peter Kokot
49cc2a63b3
Remove some more Apache 1 left overs
...
- warning in configure.ac is relevant for the sapi/apache
- errors output redirected to /dev/null when checking Apache version
2019-07-07 12:09:19 +02:00
George Wang
dfce767a62
Merge branch 'PHP-7.4'
2019-07-04 12:15:25 -04:00
George Wang
6a403504e7
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-04 12:14:48 -04:00
George Wang
3ec8776940
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-04 12:04:08 -04:00
George Wang
32af676bd9
Updated to LiteSpeed SAPI V7.4.3
...
Increased response header count limit from 100 to 1000.
Added crash handler to cleanly shutdown PHP request.
Added CloudLinux mod_lsapi mode
Fixed bug #76058
2019-07-04 12:03:21 -04:00
Joe Watkins
f1f63c0cec
Merge branch 'PHP-7.4'
...
* PHP-7.4:
improvements to cli server
2019-07-03 16:31:55 +02:00
Joe Watkins
30019f47a5
improvements to cli server
2019-07-03 16:30:51 +02:00
Nikita Popov
fe2aca83ce
Merge branch 'PHP-7.4'
2019-07-01 16:14:58 +02:00
Nikita Popov
af3e2d3186
Initialize last_line in phpdbg globals
2019-07-01 16:14:45 +02:00
Joe Watkins
22fb96ab85
Merge branch 'PHP-7.4'
...
* PHP-7.4:
implement support for workers in cli-server on platforms supporting fork
2019-06-29 05:28:12 +02:00
Joe Watkins
82effb3fc7
implement support for workers in cli-server on platforms supporting fork
2019-06-29 05:27:35 +02:00
Nikita Popov
8f0729cb65
Merge branch 'PHP-7.4'
2019-06-28 17:47:45 +02:00
Nikita Popov
45ab57339e
Use strcmp() in phpdbg_eol_global_update
...
memcmp() only makes sense on equal length strings, and here we don't
know anything about the length of the input.
2019-06-28 17:24:30 +02:00
Nikita Popov
cf29c0f212
Remove phpdbg_xml_asprintf()
...
Clang doesn't like the use of promoted zend_bool in va_start. As
the function isn't used anyway, I'm simply dropping it...
2019-06-28 16:59:52 +02:00
Nikita Popov
b98c148f78
Merge branch 'PHP-7.4'
2019-06-28 15:05:00 +02:00
Nikita Popov
54dd762f59
Set up asan+ubsan scheduled build on azure
...
Also adds an --asan flag to run-tests.php to setup all the necessary
environment variables. Some tests are marked as skipped because they
are incompatible with asan or too slow.
I'm basing this on the DEBUG_ZTS build, which seems to give us the
most mileage.
2019-06-28 15:00:54 +02:00
Nikita Popov
0a0ca984f0
Merge branch 'PHP-7.4'
2019-06-28 14:48:08 +02:00
Nikita Popov
50cce5eb4f
Avoid reliance on arena details on phpdbg oplog
...
Instead of guessing what the address of the first arena allocation
is going to be, embed the sentinel in the oplog_list structure
directly.
2019-06-28 14:47:42 +02:00
Joe Watkins
b98cd0719a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
implement tsrm_is_shutdown API
2019-06-28 10:27:39 +02:00
Joe Watkins
68485f8ab4
implement tsrm_is_shutdown API
2019-06-28 10:27:19 +02:00
Christoph M. Becker
0504f04591
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Use the portable zend_strndup() instead of strndup()
2019-06-28 10:24:15 +02:00