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
David Carlier
44f9c226aa
following-up on GH-12551: removing inet_ntoa usage
...
Close GH-12554
2023-11-06 12:05:56 +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
Christoph M. Becker
24fe7f08b5
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #81400 : Unterminated string in dns_get_record() results
2021-08-30 18:55:16 +02:00
Christoph M. Becker
fcbe737218
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #81400 : Unterminated string in dns_get_record() results
2021-08-30 18:52:40 +02:00
Christoph M. Becker
edab9ad205
Fix #81400 : Unterminated string in dns_get_record() results
...
If we assemble a zend_string manually, we need to end it with a NUL
byte ourselves.
We also fix the size calculation for that zend_string; there is no need
for the extra byte for each part, and we don't have to multiply by two,
since we're using DnsQuery_A(), not DnsQuery_W () (in which case we
would have to do the character set conversion, anyway). This avoids
over-allocation, and the need to explicitly set the string length.
Finally, we use the proper access macro for zend_strings.
Closes GH-7427.
2021-08-30 18:49:39 +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
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
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
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
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
9585964dd7
Promote warning to exception in dns_check_record() function
...
GH-5004
2019-12-20 16:43:40 +01:00
Gabriel Caruso
5d6e923d46
Remove mention of PHP major version in Copyright headers
...
Closes GH-4732.
2019-09-25 14:51:43 +02:00
Peter Kokot
c245898bfa
Update and fix remaining year ranges (2019)
...
This patch follows previous license year ranges updates. With new
approach source code files now have simplified headers with license
information without year ranges.
2019-02-08 23:14:29 +01:00
Nikita Popov
e219ec144e
Implement typed properties
...
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734 , which is a squash of PR #3313 .
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
Co-authored-by: Joe Watkins <krakjoe@php.net>
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
2019-01-11 15:49:06 +01:00
Dmitry Stogov
265c3ed6cf
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
2018-07-05 10:57:49 +03:00
Dmitry Stogov
4a475a4976
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
...
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
2018-07-04 19:22:24 +03:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Anatol Belski
c8038d0611
Merge branch 'PHP-7.1'
...
* PHP-7.1:
fix proto
2016-12-19 00:53:17 +01:00
Anatol Belski
88c1491c6d
fix proto
2016-12-19 00:50:29 +01:00
Anatol Belski
781632ba24
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Cursor is not opened on singleton selects.
fix arg spec and datatype, follow up on 73594
2016-12-18 21:56:56 +01:00
Anatol Belski
3e48baa49d
fix arg spec and datatype, follow up on 73594
2016-12-18 21:16:35 +01:00
Anatol Belski
b204b3abd1
further normalizations, uint vs uint32_t
...
fix merge mistake
yet one more replacement run
2016-11-26 17:29:01 +01:00
Anatol Belski
c52322707e
Fixed bug #72683 getmxrr broken
2016-07-27 20:48:45 +02:00
Xinchen Hui
df404e2e0e
Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')
2016-05-11 17:31:46 +08:00
Julien Pauli
736b91c650
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Happy new year (Update copyright to 2016)
Conflicts:
ext/json/php_json_encoder.h
sapi/continuity/capi.c
2016-01-04 18:13:38 +01:00
Lior Kaplan
53fb2f1e5c
Happy new year (Update copyright to 2016)
2016-01-03 01:44:37 +02:00
Kalle Sommer Nielsen
43457f960f
Drop old VC support (VC <= 9), for dns.c, this means that DNS_TYPE_NAPTR always is available
2015-03-29 06:57:11 +02:00
Anatol Belski
1b87f31ba8
remove unused variable
2015-02-04 18:13:26 +01:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Tjerk Meesters
0109eb07cf
Changed based on comments and make its behaviour equal to the Windows version
2014-11-30 22:42:31 -08:00
Tjerk Meesters
904dca6392
Changed based on comments and make its behaviour equal to the Windows version
2014-11-30 22:42:13 -08:00
Anatol Belski
ddaae1a02c
fix datatype mismatch
2014-10-23 10:29:58 +02:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Anatol Belski
3234480827
first show to make 's' work with size_t
2014-08-27 20:49:31 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
cb25136f4e
fix macros in the 5 basic extensions
2014-08-16 11:37:14 +02:00
Pierre Joye
01513976e7
ptr needed here
2014-05-14 20:05:54 +02:00
Xinchen Hui
7080131e71
This should be removed too
2014-05-13 13:55:51 +08:00