1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 21:52:36 +02:00
Files
archived-php-src/ext/standard
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
..
2020-08-05 15:43:41 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-12-23 20:20:53 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2020-04-14 15:16:26 +00:00
2020-04-14 15:16:26 +00:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-03-19 14:38:41 +01:00
2018-03-19 14:38:41 +01:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2020-08-10 21:52:36 +02:00
2020-04-13 21:09:08 -07:00
2018-07-25 00:53:25 +02:00
2019-09-15 15:13:13 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-06-19 12:42:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-02-12 10:50:22 +01:00
2020-08-02 23:56:37 -07:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2019-01-30 17:09:12 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-08-01 16:19:54 +02:00
2019-12-02 11:19:15 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-04-06 19:06:16 -07:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2020-07-11 18:30:28 +08:00