1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 13:43:02 +02:00
Files
archived-php-src/ext
Christoph M. Becker 2cab085bb3 Fix #80266: parse_url silently drops port number 0
As of commit 81b2f3e[1], `parse_url()` accepts URLs with a zero port,
but does not report that port, what is wrong in hindsight.

Since the port number is stored as `unsigned short` there is no way to
distinguish between port zero and no port.  For BC reasons, we thus
introduce `parse_url_ex2()` which accepts an output parameter that
allows that distinction, and use the new function to fix the behavior.

The introduction of `parse_url_ex2()` has been suggested by Nikita.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=81b2f3e5d9fcdffd87a4fcd12bd8c708a97091e1>

Closes GH-6399.
2020-11-04 14:53:19 +01:00
..
2019-12-16 10:32:49 -08:00
2018-10-14 19:45:12 +02:00
2020-10-26 16:50:20 +01:00
2020-06-23 15:57:24 +02:00
2020-10-15 10:16:22 +02:00
2019-04-06 19:06:16 -07:00
2020-10-22 17:01:48 +01:00
2020-02-03 13:03:54 +01:00
2019-04-23 12:43:32 +02:00
2020-07-28 10:23:10 +02:00
2020-10-26 15:40:12 +01:00
2019-02-20 11:11:06 +11:00
2020-10-29 13:08:16 +01:00
2020-09-17 10:12:10 +02:00
2020-04-23 17:35:09 +02:00
2020-09-25 16:28:48 +01:00
2019-04-10 13:06:55 +02:00
2020-09-03 10:29:38 +02:00
2020-06-19 17:31:28 +02:00
2018-10-14 19:45:12 +02:00
2020-02-28 17:06:05 +01:00
2020-07-22 20:45:56 +02:00
2019-01-02 11:21:25 +01:00
2020-09-30 08:37:16 +03:00
2020-06-19 10:46:26 +02:00
2018-10-23 14:57:03 +02:00
2019-01-07 01:04:16 -08:00
2018-11-01 18:35:32 +02:00