|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-03-01 00:24 UTC] nawarian at gmail dot com
[2020-03-01 00:31 UTC] nawarian at gmail dot com
[2021-06-09 15:27 UTC] patrickallaert@php.net
-Status: Open
+Status: Not a bug
[2021-06-09 15:27 UTC] patrickallaert@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 20:00:01 2025 UTC |
Description: ------------ When processing a file through function `file`, I met this feature, which I could not have expected in this place. Yes, I know that you need to use flag FILE_IGNORE_NEW_LINES, but having received an underscore, for a long time I could not understand where it came from. Test script: --------------- var_dump(parse_url('http://yandex.ru' . PHP_EOL, PHP_URL_HOST)); Expected result: ---------------- string(10) "yandex.ru" or Exception Actual result: -------------- string(10) "yandex.ru_"