Gabriel Caruso
5d6e923d46
Remove mention of PHP major version in Copyright headers
...
Closes GH-4732.
2019-09-25 14:51:43 +02:00
Nikita Popov
8d7911ef56
Standardize type printing in reflection
...
Use ?T instead of "T or NULL".
2019-09-23 15:40:03 +02:00
Dmitry Stogov
64b2ee606c
Merge branch 'non_pic'
...
* non_pic:
Link executable files using non PIC object files. This reduces PIC overhead and improves performance.
2019-09-06 11:45:43 +03:00
Nikita Popov
edf5896a4e
Merge branch 'PHP-7.4'
2019-09-05 18:29:30 +02:00
Nikita Popov
9ec61e43d4
Fix pipe detection and stream position handling
...
There are two related changes here:
1. Also check for S_ISCHR/FILE_TYPE_CHAR when checking for pipes, so
that we detect ttys as well, which are also not seekable.
2. Always set position=-1 (i.e. ftell will return false) when a pipe
is detected. Previously position=0 was sometimes used, depending on
whether we're on Windows/Linux and whether the FD or FILE codepath
was used.
2019-09-05 18:29:15 +02:00
Dmitry Stogov
56e880af9f
Link executable files using non PIC object files. This reduces PIC overhead and improves performance.
2019-09-03 23:42:22 +03:00
Nikita Popov
be8247101d
Merge branch 'PHP-7.4'
2019-08-30 11:02:40 +02:00
Nikita Popov
b4088ba509
Avoid accessing undefined index in CLI server test
2019-08-30 11:02:30 +02:00
Nikita Popov
226fd52c76
Don't call Reflection::export() in --rf etc implementation
...
This method is deprecated ... instead simply directly print the
object.
2019-08-30 11:02:28 +02:00
Nikita Popov
51ea7fc477
Merge branch 'PHP-7.4'
2019-08-23 17:01:49 +02:00
Nikita Popov
7910f128e2
Fix noalias violation in select call
2019-08-23 16:18:59 +02:00
Stephen Reay
66b750d07e
Add stubs for PCRE extension
...
Closes GH-4501.
2019-08-11 12:46:42 +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
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
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
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
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
Christoph M. Becker
5120e4a133
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Split test case
2019-06-24 14:08:30 +02:00
Christoph M. Becker
94df6dc3fd
Split test case
...
This test is failing on AppVeyor almost all of the time, so splitting
it seems appropriate. This also allows us to rid php_cli_server_stop()
which was only used by this test case.
2019-06-24 14:08:11 +02:00
Joe Watkins
089e45c91a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
refactor a little more to add some more useful error messages and raise the limits on waiting for slow machines
2019-06-19 11:42:02 +02:00
Joe Watkins
eda5d8afcf
refactor a little more to add some more useful error messages and raise the limits on waiting for slow machines
2019-06-19 11:41:24 +02:00
Joe Watkins
0cf3034af1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Separate check for process creation and ability to accept connections
2019-06-19 11:09:48 +02:00
Joe Watkins
d6480fa231
Separate check for process creation and ability to accept connections
2019-06-19 11:09:26 +02:00
Joe Watkins
956db0cdc2
Merge branch 'PHP-7.4'
...
* PHP-7.4:
fix mac tests on azure
2019-06-14 12:58:13 +02:00
Joe Watkins
f16b012116
fix mac tests on azure
2019-06-14 12:55:00 +02:00
Anatol Belski
09ac6eb36d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't involve output check in the test
2019-06-01 23:33:00 +02:00
Anatol Belski
7a64150921
Don't involve output check in the test
2019-06-01 23:31:05 +02:00
Christoph M. Becker
e720fb7565
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix ZTS issue regarding new Windows CTRL handling API
2019-06-01 09:36:25 +02:00
Christoph M. Becker
637d8677b3
Fix ZTS issue regarding new Windows CTRL handling API
...
php_win32_signal_system_ctrl_handler() is called from a kernel thread,
so the former initialization of `vm_interrupt_flag` has no effect,
since it is defined as thread-local. This is, however, not necessary,
since the CTRL signal handling is supposed to work only for the main
thread anyway. We therefore change `vm_interrupt_flag` and the related
variables to true globals.
This also allows us to unmark the respective test case as XFAIL.
Furthermore, `vm_interrupt_flag` is declared as `zend_bool *`, so we
better treat it such.
2019-06-01 09:35:47 +02:00
Nikita Popov
4fff40e0d2
Merge branch 'PHP-7.4'
2019-05-31 09:18:09 +02:00
Nikita Popov
4b1f711823
Mark sapi_windows_set_ctrl_handler.phpt as XFAIL
2019-05-31 09:17:51 +02:00
Nikita Popov
693955c5c5
Merge branch 'PHP-7.4'
2019-05-29 17:07:52 +02:00
Nikita Popov
b32b8e91bd
Update cli reflection test
2019-05-29 17:02:36 +02:00
Nikita Popov
43be89ed87
Remove two zpp tests in sapi/cli/tests
...
These fail on master -- apparently we're not running these tests...
2019-05-29 17:00:12 +02:00
Peter Kokot
2cf90bb2f0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Normalize comments in *nix build system m4 files
2019-05-12 18:51:50 +02:00
Peter Kokot
75fb74860d
Normalize comments in *nix build system m4 files
...
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Kalle Sommer Nielsen
c265652879
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Include the request method in CLI server logs
2019-05-02 23:32:43 +03:00
Simon Welsh
6e3438bc62
Include the request method in CLI server logs
2019-05-02 23:32:22 +03:00
Peter Kokot
bedfb33dfb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
[ci skip] Remove CLI sapi README
2019-04-23 08:52:30 +02:00
Peter Kokot
9443bd1bbf
[ci skip] Remove CLI sapi README
...
Removing in favour of:
- https://www.php.net/manual/en/features.commandline.introduction.php
- https://www.php.net/manual/en/features.commandline.differences.php
2019-04-23 08:51:23 +02:00
Nikita Popov
dc42e403a2
Merge branch 'PHP-7.4'
2019-04-15 11:42:55 +02:00
Nikita Popov
7f6c22cb3d
Fix last maybe uninit warnings on 7.4
...
Most of these only occur under GCC 5. Not fond of all the workarounds
(especially the PDO one), but it gets us a clean build...
2019-04-15 11:35:13 +02:00