summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/codepointiterator_internal.cpp
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-11-04 11:34:10 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-11-04 14:53:19 +0100
commit2cab085bb37a6980b8f23a4b3c31b813ac67cda0 (patch)
tree3db67a8c445768500b408e96dbf5667aed9f5d61 /ext/intl/breakiterator/codepointiterator_internal.cpp
parent00ba784a2ce95e009f98e0e6d263634673a3f2e1 (diff)
downloadphp-git-2cab085bb37a6980b8f23a4b3c31b813ac67cda0.tar.gz
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.
Diffstat (limited to 'ext/intl/breakiterator/codepointiterator_internal.cpp')
0 files changed, 0 insertions, 0 deletions