Jorg Adam Sowa
e7b1f2a95b
Change long2ip return type ( #13395 )
2024-02-16 17:11:18 +01:00
Ilija Tovilo
f39b5c4c25
Close PHP tags in tests
...
Closes GH-12422
2023-10-18 17:34:10 +02:00
David Carlier
4400eb270f
Merge branch 'PHP-8.2' into PHP-8.3
2023-09-24 15:20:24 +01:00
David Carlier
4bfd3459fe
Merge branch 'PHP-8.1' into PHP-8.2
2023-09-24 15:19:02 +01:00
David Carlier
d65c80031a
Fix GH-12190: stream_context_create with address and port at 0.
...
Prior to the 8.1 rewrite, inet_aton was used for ipv4 addresses
therefore addresses like `0` passed.
For the bindto's case where both ip and port are set as such, we discard
the address binding.
Close GH-12195
2023-09-24 15:17:53 +01:00
iamluc
730f32bad9
Keep the orig_path for xport stream
...
Closes GH-11113
2023-05-12 15:33:55 +01:00
Christoph M. Becker
3d2d7d1000
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Revert unintended test expectation change
2022-09-28 12:14:39 +02:00
Christoph M. Becker
9caa71f94f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Revert unintended test expectation change
2022-09-28 12:13:39 +02:00
Athos Ribeiro
e6a822d437
Revert unintended test expectation change
...
Commit fbe3059 included an unintended change to the test which checks if
dns_get_record populates its additional parameter. This patch reverts
such change.
The issue was not detected by the CIs because their tests run in
the --offline mode, and the test in question needs internet connection.
Closes GH-9625.
2022-09-28 12:12:21 +02:00
Derick Rethans
15e3fcb468
Fixed GH-9200: setcookie has an obsolete expires date format
2022-08-11 16:27:25 +01:00
Jakub Zelenka
dc01fce36d
Fix GH-8396: Network online test using https broken
2022-08-02 18:50:42 +01:00
Christoph M. Becker
3cb3ee6c1e
Drop useless network/syslog_basic.phpt ( #8526 )
...
This test asserts that `syslog()` returns true, but that is the case
anyway[1]. Since there is already misc/syslog_basic.phpt, the test has
no further raison d'être.
[1] <https://github.com/php/php-src/blob/d4e24e72afc269f392eabd74abeb6ea86894740d/ext/standard/basic_functions.stub.php#L697-L698 >
2022-05-10 17:23:58 +01:00
Nikita Popov
822047fbb2
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix bug #81618 : Correct dns_get_record on FreeBSD
2021-11-15 10:00:55 +01:00
Nikita Popov
4a2656327d
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix bug #81618 : Correct dns_get_record on FreeBSD
2021-11-15 10:00:36 +01:00
Matt
45f52285f6
Fix bug #81618 : Correct dns_get_record on FreeBSD
...
Modify dns_get_record to test for records result based on dns_errno to
accommodate modern FreeBSD, for which res_nsearch() does not update
h_errno directly. Add new php_dns_errno macro, and have it consult
statp->res_h_errno when OS has res_nsearch().
Closes GH-7655.
2021-11-15 10:00:07 +01:00
Nikita Popov
ad14d6506a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Make setcookie() test more robust against the passage of time
2021-09-20 10:29:13 +02:00
Nikita Popov
b4d7387468
Make setcookie() test more robust against the passage of time
2021-09-20 10:28:45 +02:00
George Peter Banyard
0ba155cd57
Make syslog() binary safe
...
Closes GH-7245
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com >
2021-07-15 19:08:26 +02:00
Benjamin Eberlei
0ca5ab4fa5
Add host for php_network_getaddresses getaddrinfo failed error message. ( #7181 )
2021-06-22 17:18:09 +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
Nikita Popov
11bf5ccf62
Set default_socket_timeout in test
...
If the read is not refused outright, this will timeout, and we
don't want to wait 60s for that.
2021-05-19 15:29:38 +02:00
Nikita Popov
af948ae24c
Skip some tests under msan
...
These test functions which don't have msan interceptors. This
results in false positives running msan on ubuntu 20.04.
2021-05-07 16:26:49 +02:00
Stanislav Malyshev
bf2bb39eac
Fix test name
2021-01-04 01:52:59 -08:00
Stanislav Malyshev
8768621149
Fix bug #79405 - gethostbyname() silently truncates after a null byte
2021-01-04 01:19:21 -08:00
ekinhbayar
b0e858da8b
Remove bug41347.phpt as the error cases are already tested
...
Closes GH-6506.
2020-12-11 16:47:40 +01:00
Nikita Popov
de2d38d531
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #80137
Fix bug #80138
2020-09-29 10:59:46 +02:00
Nikita Popov
1fafcd2b28
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #80137
Fix bug #80138
2020-09-29 10:59:32 +02:00
Matthias Karbe
f5afd0a827
Fix bug #80137
...
Skip getprotobyname() and getprotobynumber() tests on *nix if there
is no /etc/protocols file.
Closes GH-6193.
2020-09-29 10:58:00 +02:00
Levi Morrison
f26d855e29
Skip if https wrapper isn't present
2020-09-22 03:36:54 -06: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
Sara Golemon
95f2583743
Allow http tests to run in parallel by using ephemeral ports
2020-09-17 14:38:54 +00:00
George Peter Banyard
c93a7b50b4
Normalize behaviour of DNS function on Windows
...
This is a follow-up on commit 4a438b4469
Add some tests to hopefully not forget it next time
2020-09-12 18:41:25 +02:00
Christoph M. Becker
4d86000541
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80067 : Omitting the port in bindto setting errors
2020-09-11 14:49:07 +02:00
Christoph M. Becker
e41867888a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80067 : Omitting the port in bindto setting errors
2020-09-11 14:46:51 +02:00
Christoph M. Becker
dfb3a79914
Fix #80067 : Omitting the port in bindto setting errors
...
A recent commit[1] which fixed a memory leak introduced a regression
regarding the formerly liberal handling of IP addresses to bind to. We
fix this by reverting that commit, and fix the memory leak where it
actually occurs. In other words, this fix is less intrusive than the
former fix.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=0b8c83f5936581942715d14883cdebddc18bad30 >
Closes GH-6104.
2020-09-11 14:44:12 +02:00
Nikita Popov
e1c422ce4f
Try to fix 32-bit setcookie tests, again
2020-09-08 17:38:06 +02:00
Nikita Popov
2d1b872b13
Try to fix setcookie() tests on 32-bit
2020-09-08 16:25:21 +02:00
George Peter Banyard
72223159e4
Promote warnings to errors for set(raw)cookie()
...
Closes GH-5819
2020-09-08 14:28:49 +02:00
Nikita Popov
d30a648bc8
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #80077
2020-09-08 10:01:27 +02:00
Nikita Popov
d0d9c3a980
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #80077
2020-09-08 10:01:13 +02:00
Nikita Popov
07cb665515
Fixed bug #80077
...
Quoting from the bug report:
> The domain names passed to getmxrr() do not contain a trailing dot.
> DNS lookups which do not find records will (depending on the local
> resolver config) try again by adding the local domain to the end of
> the searched host/domain. In many environments there's an mx record
> for any subdomain of the local domain and the MX query will return
> a hit. But the test expects no hit. So the test fails when checking
> that "qa.php.net" does not have an MX record in DNS. In our local
> environment the resolver falls back to also check qa.php.net.kippdata.de
> which does have an MX record. Using "qa.php.net." instead of "qa.php.net"
> should fix this for everyone.
2020-09-08 10:00:49 +02:00
Nikita Popov
67e1f23999
Make gethostbyname() test more liberal
...
This returns 127.0.1.1 on travis bionic.
2020-09-04 14:18:58 +02:00
George Peter Banyard
4a438b4469
Warning to Error promotion in ext/standard
...
Those should be the last ones other than set(raw)cookie()
Closes GH-5814
2020-09-03 17:43:57 +02:00
Nikita Popov
59fbdf7326
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #79944
2020-08-10 20:43:24 +02:00
Nikita Popov
5b8b480d23
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #79944
2020-08-10 20:43:13 +02:00
Nikita Popov
a06eed0c0e
Fix bug #79944
...
Only return true from dns_get_mx if we actually found any MX record.
2020-08-10 20:42:50 +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
c6d539ae01
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix test
2020-07-29 15:04:23 +02:00
Nikita Popov
99c48a2477
Fix test
2020-07-29 15:04:05 +02:00
twosee
ab9d10d023
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Handle bindto error
2020-07-29 17:48:01 +08:00