Kévin Dunglas
ad85e71421
fix: support for timeouts with ZTS on Linux ( #10141 )
2023-03-03 11:35:06 +01:00
Erki Aring
5ecbb1b39d
Fix GH-9298: remove all registered signal handlers in pcntl RSHUTDOWN
2022-11-13 10:57:58 +01:00
Ilija Tovilo
ed1e703716
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Migrate i386 to GitHub actions
2022-11-03 14:37:17 +01:00
Ilija Tovilo
75970077b0
Migrate i386 to GitHub actions
...
Closes GH-9856
2022-11-03 14:34:54 +01:00
Christoph M. Becker
5017240ccc
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix pcntl Haiku build
2022-05-24 15:00:47 +02:00
David Carlier
e33de9dda8
Fix pcntl Haiku build
...
guarding SIGIO constant.
Closes GH-8612.
2022-05-24 14:59:50 +02:00
Christoph M. Becker
4b90eef9cf
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8142: Compilation error on cygwin
2022-03-04 16:21:39 +01:00
David Carlier
8b15858c58
Fix GH-8142: Compilation error on cygwin
...
* pcntl: SIGPOLL/si_band is unsupported
* intl: enable the signal apis with `_POSIX_C_SOURCE`
Closes GH-8146.
2022-03-04 16:20:39 +01:00
David Carlier
be22018f35
Fix pcntl_rfork build for DragonFlyBSD
...
RFTSIGZMB flag unsupported, guarding with the said flag instead of system
in case the implementaion catches up with FreeBSD's.
Closes GH-7918.
2022-01-10 13:10:30 +01:00
Dmitry Stogov
271cbe527c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Partially fix handling of exceptions thrown in interrupt handlers
2021-11-11 21:01:40 +03:00
Dmitry Stogov
fa0b84a06b
Partially fix handling of exceptions thrown in interrupt handlers
2021-11-11 20:59:56 +03:00
Patrick Allaert
ac18dd0dc7
Prefer EXPECT over EXPECTF
2021-06-29 17:13:02 +02:00
Nikita Popov
6600ad6067
Add some missing EXTENSIONS sections to misc tests
2021-06-14 14:52:44 +02:00
Nikita Popov
7485978339
Migrate SKIPIF -> EXTENSIONS ( #7138 )
...
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00
David Carlier
007046fdd0
pcntl_rfork: following-up suggestions.
...
removing RFMEM constant.
treating beforehand the only case where rfork would return EINVAL.
2021-06-03 15:13:12 +02:00
Nikita Popov
fa9cb6c314
Fix typo in constant name
2021-05-31 14:33:51 +02:00
Joe Watkins
660585e25f
fix stub for pcntl_rfork
2021-05-31 13:39:49 +02:00
David Carlier
28382aa1ec
pcntl: Adding pcntl_rfork support.
2021-05-31 09:19:15 +02:00
David CARLIER
20ef668978
pcntl add darwin specific flags for who/which especially ( #7075 )
...
PRIO_DARWIN_BG to be on part with pthread QOS class and
energy efficiency.
2021-05-31 09:16:46 +02:00
David CARLIER
90b843beb6
Add FreeBSD to CI ( #6974 )
...
This is using Cirrus, as none of the CI providers we already use support FreeBSD.
2021-05-21 12:00:46 +02:00
Nikita Popov
485a42f495
Work around incorrect NSIG on FreeBSD
2021-05-18 17:07:06 +02:00
Nikita Popov
d3e8ae1243
Drop PHP_FUNCTION declares from php_pcntl.h
2021-05-18 17:07:06 +02:00
George Peter Banyard
2068d230d9
Fix [-Wstrict-prototypes] warning in PCNTL extension
...
To achieve this we need to introduce a new wrapper function with
dummy arguments which calls pcntl_signal_dispatch() to respect
the function pointer signature for a tick function.
2021-05-12 19:02:48 +01:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Christoph M. Becker
4196438bb0
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #79812 : Potential integer overflow in pcntl_exec()
2021-04-12 12:17:02 +02:00
Christoph M. Becker
d74c61c133
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #79812 : Potential integer overflow in pcntl_exec()
2021-04-12 12:15:07 +02:00
Christoph M. Becker
0a36d417e8
Fix #79812 : Potential integer overflow in pcntl_exec()
...
We use the proper type, and make sure that no overflow can occur by
using `safe_emalloc()` (we can assume that neither string length is
`SIZE_MAX`).
Closes GH-6845.
2021-04-12 12:12:40 +02:00
Matteo Beccati
be1fbdbb78
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Increased test compatibility
2021-04-11 17:32:22 +02:00
Matteo Beccati
7f4784c1c9
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Increased test compatibility
2021-04-11 17:32:13 +02:00
Matteo Beccati
da3a807f22
Increased test compatibility
...
The test expects no masked signals at the beginning, but when run as part
of a Bamboo build, SIGQUIT is already masked and the test fails.
2021-04-11 17:19:58 +02:00
Máté Kocsis
bf0f6aaf18
Improve class entry generation
...
Related to GH-6701
2021-02-16 13:09:56 +01:00
Máté Kocsis
af56982a5e
Generate class entries from stubs for oci8, odbc, openssl, pcntl, pdo, pgsql
...
Closes GH-6691
2021-02-14 23:19:21 +01:00
Nikita Popov
3e01f5afb1
Replace zend_bool uses with bool
...
We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.
Of course, zend_bool is retained as an alias.
2021-01-15 12:33:06 +01:00
Nikita Popov
1b3b430f47
Add --repeat testing mode
...
This testing mode executes the test multiple times in the same
process (but in different requests). It is primarily intended to
catch tracing JIT bugs, but also catches state leaks across
requests.
Closes GH-6365.
2020-10-30 17:29:33 +01:00
Nikita Popov
c23eefb1ad
Don't leak pcntl last_error across requests
2020-10-22 14:21:22 +02:00
Nikita Popov
7a1dc180a6
Update ext/pcntl parameter names
...
Closes GH-6278.
2020-10-06 12:45:57 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
George Peter Banyard
fa8d9b1183
Improve type declarations for Zend APIs
...
Voidification of Zend API which always succeeded
Use bool argument types instead of int for boolean arguments
Use bool return type for functions which return true/false (1/0)
Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics
Closes GH-6002
2020-08-28 15:41:27 +02:00
Máté Kocsis
3df306de94
Promote warnings to exceptions in ext/pcntl
...
Closes GH-6004
2020-08-25 13:02:13 +02:00
Nikita Popov
8fbc618a3c
Fix invalid zpp calls in pcntl_get/setpriority
2020-08-13 16:46:02 +02:00
Nikita Popov
217d05b18e
Check permissions in pcntl_unshare_03.phpt
2020-08-10 15:59:02 +02:00
Máté Kocsis
7aacc705d0
Add many missing closing PHP tags to tests
...
Closes GH-5958
2020-08-09 22:03:36 +02:00
Máté Kocsis
046cc5e4c2
Add another round of missing parameter types to stubs
...
Closes GH-5950
2020-08-07 16:48:45 +02:00
Nikita Popov
74b285d78c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Check ps -p availability in process title test
Add privilege check in pcntl_unshare test
2020-08-05 18:18:51 +02:00
Nikita Popov
8fd79d3574
Add privilege check in pcntl_unshare test
...
Privileges for CLONE_NEWPID were not checked.
2020-08-05 18:18:06 +02:00
Nikita Popov
7575340427
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Check ps -p availability in proc_nice test
Set AI_CANONNAME flag in socket_addrinfo test
Add ipv6 skipif to test
Improve privilege check in pcntl_setpriority() test
2020-08-05 12:12:24 +02:00
Nikita Popov
34e7d78df7
Improve privilege check in pcntl_setpriority() test
...
We need CAP_SYS_NICE privileges, which might not be available
just because we're running as root (Docker...)
2020-08-05 12:09:10 +02:00
Nikita Popov
fcfa0a46c3
Suppress warning in pcntl_unshare skipif
2020-08-05 10:39:45 +02:00
Nikita Popov
36a1197f12
Suppress warning in pcntl_unshare skipif
2020-08-05 09:46:07 +02:00
Máté Kocsis
bdacd2ae8f
Add a few missing types to stubs
2020-08-01 23:55:08 +02:00