Nikita Popov
79484b4f8a
Update ext/sockets parameter names
...
Also change $max_length to $length in a number of filesystem APIs,
where our usage was inconsistent.
Closes GH-6276.
2020-10-06 12:12:43 +02:00
George Peter Banyard
189751cbeb
Promote notice to ValueError for invalid hint key
2020-09-28 16:24:04 +01:00
Máté Kocsis
e950ca13ea
Consolidate the usage of "either" and "one of" in error messages
...
Closes GH-6173
2020-09-20 19:41:47 +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
Máté Kocsis
9975986b7e
Improve error messages mentioning parameters instead of arguments
...
Closes GH-5999
2020-09-09 10:47:43 +02:00
Nikita Popov
eb17f996fb
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Avoid socket path clash in test
2020-08-26 12:12:23 +02:00
Nikita Popov
0487bcfac7
Avoid socket path clash in test
2020-08-26 12:11:22 +02:00
Nikita Popov
dad25538f6
Don't check specific message in socket_shutdown.phpt
2020-08-10 15:58:54 +02:00
Nikita Popov
e4f5190942
Only test one error in socket_strerror() test
...
The messages differ by used libc and version, so let's not try to
do exhaustive testing here.
2020-08-10 15:58:38 +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
Nikita Popov
af64001dcb
Normalize error message capitalization
2020-08-05 16:44:06 +02:00
Nikita Popov
25d849d40b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix memory leak on socket_sendmsg() / socket_recvmsg() error
2020-08-05 16:42:55 +02:00
Nikita Popov
3b86be23e6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix memory leak on socket_sendmsg() / socket_recvmsg() error
2020-08-05 16:42:13 +02:00
Nikita Popov
6a1bd57df5
Fix memory leak on socket_sendmsg() / socket_recvmsg() error
2020-08-05 16:41:40 +02:00
Nikita Popov
002908a5c5
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Unset ai_canonname field in dump
2020-08-05 14:59:06 +02:00
Nikita Popov
b69a98cfb3
Unset ai_canonname field in dump
...
Okay, looks like ai_canonname does not get set on macos even if
AI_CANONNAME is specified, so canonicalize this in the other
direction instead and unset ai_canonname if it is present.
2020-08-05 14:58:56 +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
741daa8605
Set AI_CANONNAME flag in socket_addrinfo test
...
Musl always populates ai_canonname. Set the flag to avoid output
discrepancies.
2020-08-05 12:10:12 +02:00
Nikita Popov
58ab49111e
Add ipv6 skipif to test
...
This was done for the -unix variant, but not the (formerly
windows-only?) main test.
2020-08-05 12:09:54 +02:00
Máté Kocsis
ae34a6539f
Fix Socket related tests on Windows
2020-08-04 09:25:41 +02:00
Máté Kocsis
77172c220a
Convert resources to objects in ext/sockets
...
Closes GH-5900.
2020-08-03 23:26:38 +02:00
Santiago M. Mola
65713aaddd
Fix #79923 : fix socket_set_option_bindtodevice test
...
Closes GH-5924.
2020-08-03 15:03:07 +02:00
Nikita Popov
b0dc325bba
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Handle SO_ options only at SOL_SOCKET level
Allow different error message for errno 58
2020-07-02 11:44:34 +02:00
Nikita Popov
0a216f5edb
Allow different error message for errno 58
...
Apparently this is EDEADLOCK on some systems.
2020-07-02 11:39:22 +02:00
Nikita Popov
b53f83c0c3
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Use automatic port assignment in socket_import/export test
2020-05-28 10:20:12 +02:00
Nikita Popov
490ca05883
Use automatic port assignment in socket_import/export test
2020-05-28 10:18:59 +02:00
George Peter Banyard
7ff8eaa545
Promote warnings to Errors in sockets's extension.
2020-04-21 20:41:26 +02:00
Nikita Popov
58f9c4053e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't rand() in test
2020-04-20 16:37:19 +02:00
Nikita Popov
3e9dac2c6b
Don't rand() in test
...
Instead use port 0 to get a free port from the OS.
2020-04-20 16:35:52 +02:00
Nikita Popov
934e60b594
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't specify ports in socket_export_stream-4.phpt
2020-03-16 10:32:39 +01:00
Nikita Popov
a57905dbac
Don't specify ports in socket_export_stream-4.phpt
...
Let the system pick a free port instead...
2020-03-16 10:32:04 +01:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Máté Kocsis
d1764ca330
Make error messages more consistent by fixing capitalization
...
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00
Máté Kocsis
afdaa91170
Fix #78880 : Final spelling fixes
2020-01-16 19:14:31 +01:00
Christoph M. Becker
424d34d1c0
Make test more resilient
...
`socket_bind()` may raise `E_WARNING` on failure, which would cause the
test to be marked as borked. Since we're checking the return value
anyway, we can silence warnings.
2019-11-21 13:40:36 +01:00
Christoph M. Becker
735c4cab74
Make test more resilient
...
`socket_bind()` may raise `E_WARNING` on failure, which would cause the
test to fail.
2019-11-11 18:08:54 +01:00
Christoph M. Becker
ecc9588d0c
Properly handle non resources passed to socket_select()
...
As of PHP 8.0.0, failing `zend_fetch_resource_ex()` throws a TypeError,
so we cannot simply skip non resources in the `$read`, `$write` and
`$except` arrays. Instead we bail out. Since these arrays are already
checked in `php_sock_array_to_fd_set()`, we remove the additional check
in `php_sock_array_from_fd_set()`.
2019-10-18 14:16:25 +02:00
Thomas Gerbet
428bd3d908
Add stubs for ext-sockets
2019-10-12 17:08:24 +02:00
Christoph M. Becker
cc8739cfb9
Fix potentially borked test case
...
If interface 'lo' is not available, `socket_set_option()` may warn,
which would cause the test to be marked as borked. Thus we silence the
function call.
2019-10-12 16:48:45 +02:00
Christoph M. Becker
52f0610b74
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix test case
2019-10-12 16:29:42 +02:00
Christoph M. Becker
f6bd5dcbe9
Fix test case
...
`MSG_EOR` and `MSG_EOF` are not necessarily defined, in which case the
test would fail.
2019-10-12 16:28:57 +02:00
Nikita Popov
85c8c5bfac
Merge branch 'PHP-7.4'
2019-10-11 10:58:03 +02:00
Fabien Villepinte
8b8c226dbf
Replace port already used
...
Closes GH-4811.
2019-10-11 10:57:09 +02:00
Fabien Villepinte
78c753e8ee
Fix typo in tests
2019-10-10 15:57:57 +02:00
Nikita Popov
b0cf34a30c
Merge branch 'PHP-7.4'
2019-10-08 18:20:31 +02:00
Fabien Villepinte
8b5c351154
Avoid file clash in root_check skipifs
...
Extract root check into skipif_root.inc to share this commonly
repeated logic.
Closes GH-4779.
2019-10-08 18:20:13 +02:00
Nikita Popov
235983dfde
Merge branch 'PHP-7.4'
2019-09-30 17:52:39 +02:00
Fabien Villepinte
0aa3acc6c4
Fix borked SKIPIFs
2019-09-30 17:51:41 +02:00
viest
48040cf345
Remove deprecated getaddrinfo flags
...
The AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES have
been deprecated by glibcs, and PHP 7.4 follows this deprecation.
This removes the offending flags for PHP 8.0.
2019-08-26 11:45:31 +02:00
Nikita Popov
06a4a9ba42
Merge branch 'PHP-7.4'
2019-08-26 11:33:38 +02:00