Skip to content

Use explode() instead of split() - #25488

Merged
DeepDiver1975 merged 1 commit into
masterfrom
php7-split-deprecated
Jul 17, 2016
Merged

DeepDiver1975 merged 1 commit into
masterfrom
php7-split-deprecated

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

fixes #25483

@mention-bot

Copy link
Copy Markdown

@DeepDiver1975, thanks for your PR! By analyzing the annotation information on this pull request, we identified @lenz1111, @Xenopathic and @icewind1991 to be potential reviewers

*/
private static function parseHttpRangeHeader($rangeHeaderPos, $fileSize) {
$rArray=split(',', $rangeHeaderPos);
$rArray=explode(',', $rangeHeaderPos);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably write an unit test for this to detect it in the future 😇

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code will die in 9.2 - in addition this whole file is almost untestable

@PVince81

Copy link
Copy Markdown
Contributor

👍

@DeepDiver1975
DeepDiver1975 merged commit c0539eb into master Jul 17, 2016
@DeepDiver1975
DeepDiver1975 deleted the php7-split-deprecated branch July 17, 2016 09:35
LukasReschke added a commit to nextcloud/server that referenced this pull request Jul 20, 2016
LukasReschke added a commit to nextcloud/server that referenced this pull request Jul 20, 2016
@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not playing video when use PHP 7 on shared links

4 participants