Gina Peter Bnayard
5853cdb73d
Use "must not" instead of "cannot" wording
2024-08-21 21:12:17 +01:00
Gina Peter Bnayard
e7c4d54d65
Use new helper function for "cannot be empty" ValueErrors
2024-08-21 21:12:17 +01:00
Niels Dossche
c151d2d135
standard: change uses of sprintf into snprintf and zend_string_concat2
2024-06-14 08:12:03 -07:00
Jorg Sowa
9c4beac8d3
Remove inet_aton
...
This removes the deprecated inet_aton and its Windows implementation.
The inet_aton can be replaced with platform agnostic inet_pton.
Closes GH-13479
2024-02-23 23:16:43 +01:00
Jorg Adam Sowa
e630aacf79
Remove HAVE_INET_PTON ( #13410 )
2024-02-21 00:43:56 +00:00
Peter Kokot
e76f9e2b50
Remove DARWIN symbol ( #13346 )
...
When targeting Darwin systems (macOS, etc.), the compiler defines the
__APPLE__ symbol, which should be sufficient and a more established
detection method practice in these cases.
2024-02-07 21:07:48 +01:00
David CARLIER
931a8b0739
inet_ntop requirement check at configure time instead ( #12700 )
2023-11-17 16:01:46 +00:00
David Carlier
44f9c226aa
following-up on GH-12551: removing inet_ntoa usage
...
Close GH-12554
2023-11-06 12:05:56 +00:00
Christoph M. Becker
c8955c078a
Revert GH-10220
...
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816 >.
This reverts commit ecc880f491
.
This reverts commit 588a07f737
.
This reverts commit f377e15751
.
This reverts commit b4ba16fe18
.
This reverts commit 694ec1deea
.
This reverts commit 6b34de8eba
.
This reverts commit aa1cd02a43
.
This reverts commit 308fd311ea
.
This reverts commit 16203b53e1
.
This reverts commit 738fb5ca54
.
This reverts commit 9fdbefacd3
.
This reverts commit cd4a7c1d90
.
This reverts commit 928685eba2
.
This reverts commit 01e5ffc85c
.
2023-01-16 12:27:33 +01:00
Max Kellermann
308fd311ea
ext/{standard,json,random,...}: add missing includes
2023-01-10 14:19:03 +00:00
Máté Kocsis
6f2f228e4a
Declare ext/standard constants in stubs - part 5
...
Closes GH-9466
2022-09-02 15:04:49 +02:00
George Peter Banyard
9f06bb3bb6
Drop remaining usage of u_char in favour of standard C99 uint8_t ( #8611 )
...
Plus minor drive-by fixes
2022-05-23 21:57:31 +01:00
George Peter Banyard
926407f224
Fix some MSAN complaints under Clang ( #8553 )
2022-05-13 23:30:20 +01:00
George Peter Banyard
5171cb435a
Fix [-Wundef] warnings in standard extension
2022-04-01 15:48:41 +01:00
Christoph M. Becker
7daf01258d
Fix GH-7748: gethostbyaddr outputs binary string
...
`getnameinfo(3)` returns zero on success; all other values need to be
regarded as failure.
2021-12-10 17:38:36 +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
425e70c11c
Fix bug #81441
...
Zero-initialize the sa4/sa6 structures. On musl sin6_scope_id is
used by getnameinfo() without NI_NUMERICHOST flag. In the interest
of being conservative simply zero out everything.
2021-11-09 16:23:11 +01:00
David CARLIER
e836143ad7
Fix dns resolv linkage issue on haiku ( #7350 )
2021-08-10 15:46:52 +02:00
Patrick Allaert
aff365871a
Fixed some spaces used instead of tabs
2021-06-29 11:30:26 +02:00
Remi Collet
99d67d121a
use getnameinfo instead of gethostbyaddr
2021-05-08 14:52:06 +02:00
Remi Collet
f9547f2b47
get rid of inet_aton and inet_ntoa use inet_ntop iand inet_pton where available standardize buffer size
2021-05-06 13:39:58 +02: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
George Peter Banyard
09efad615b
Use zend_string_equals_(literal_)ci() API more often
...
Also drive-by usage of zend_ini_parse_bool()
Closes GH-6844
2021-04-09 02:34:50 +01:00
George Peter Banyard
5caaf40b43
Introduce pseudo-keyword ZEND_FALLTHROUGH
...
And use it instead of comments
2021-04-07 00:46:29 +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
Stanislav Malyshev
7daf2d8602
Fix bug #79405 - gethostbyname() silently truncates after a null byte
2021-01-04 01:20:22 -08:00
Stanislav Malyshev
8768621149
Fix bug #79405 - gethostbyname() silently truncates after a null byte
2021-01-04 01:19:21 -08: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
7e87173497
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Check the correct list
2020-08-10 21:53:26 +02:00
Nikita Popov
81e31eff0b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Check the correct list
2020-08-10 21:53:20 +02:00
Nikita Popov
4723bd4ffa
Check the correct list
...
This was supposed to check mx_list, not weight_list... oops.
2020-08-10 21:52:36 +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
Nikita Popov
1c0ee68b83
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #78008 : dns_check_record() always return true on Alpine
2020-07-15 15:10:50 +02:00
Nikita Popov
2053329b1a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #78008 : dns_check_record() always return true on Alpine
2020-07-15 15:10:40 +02:00
Andy Postnikov
2c57378bd3
Fix bug #78008 : dns_check_record() always return true on Alpine
...
- free handle before return result
- cleaned up remaining usage of MAXPACKET
- update dns_get_mx() to use the same approach
Closes GH-5854.
2020-07-15 15:10:19 +02:00
Max Semenik
2b5de6f839
Remove proto comments from C files
...
Closes GH-5758
2020-07-06 21:13:34 +02:00
Christoph M. Becker
6086343a91
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79561 : dns_get_record() fails with DNS_ALL
2020-05-04 23:02:00 +02:00
Christoph M. Becker
ed6bf0bc69
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79561 : dns_get_record() fails with DNS_ALL
2020-05-04 23:00:56 +02:00
Christoph M. Becker
c40a494406
Fix #79561 : dns_get_record() fails with DNS_ALL
...
Since Windows has its own definitions of the `PHP_DNS_*` macros, we
have to use these when registering the PHP constants.
2020-05-04 22:59:38 +02:00
Máté Kocsis
50765075db
Improve some ValueError messages
...
Closes GH-5340
2020-04-06 10:41:01 +02: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
Máté Kocsis
aadd3aaed9
Use RETURN_THROWS() in various places
2020-01-03 21:10:24 +01:00
Máté Kocsis
31cf9a7ea9
Use RETURN_THROWS() when an exception is thrown
...
Closes GH-5036
2019-12-30 17:38:10 +01:00
Máté Kocsis
e34a1f9289
Convert zend_parse_parameters_none() to fast ZPP in standard lib
...
Closes GH-5037
2019-12-30 15:28:37 +01:00
Máté Kocsis
9585964dd7
Promote warning to exception in dns_check_record() function
...
GH-5004
2019-12-20 16:43:40 +01:00