Files
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
2020-10-26 16:50:20 +01:00
2020-06-23 15:57:24 +02:00
2020-10-15 10:16:22 +02:00
…
2020-10-22 17:01:48 +01:00
2020-02-03 13:03:54 +01:00
…
2020-07-28 10:23:10 +02:00
2020-10-26 15:40:12 +01: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
2020-09-03 10:29:38 +02:00
2020-06-19 17:31:28 +02:00
2020-02-28 17:06:05 +01:00
2020-07-22 20:45:56 +02:00
2020-09-30 08:37:16 +03:00
2020-06-19 10:46:26 +02:00
…
…