Skip to content

Remove requirement for authority portion of user stream wrapper URIs #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from

Conversation

brzuchal
Copy link
Contributor

This patch is for PHP RFC: Ommit double-slash in user Stream Wrapper URI.
This patch enable and adjust the code, add phpt.

@krakjoe krakjoe added the RFC label Jan 24, 2017
PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);

php_error_docref(NULL, E_WARNING, "Unable to find the wrapper \"%s\" - did you forget to enable it when you configured PHP?", wrapper_name);
if (path[n+1] == '/' && path[n+2] == '/') {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess to use strncmp will be better here

wrapper = NULL;
protocol = NULL;
}
}
efree(tmp);
}

if (wrapper && wrapper->is_uri == 0 && path[n+1] != '/' && path[n+2] != '/') {
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review, I'll use strncmp once then before if statement.

@brzuchal brzuchal changed the title Ommit double-slash in user Stream Wrapper URI Remove requirement for authority portion of user stream wrapper URIs Jan 27, 2017
@cmb69
Copy link
Member

cmb69 commented Apr 26, 2019

Just a gentle reminder that the respective RFC is still in draft status. :)

@brzuchal
Copy link
Contributor Author

Thanks @cmb69 for friendly reminder I almost forgot about that RFC. Will verify next week if I can revive this.

@brzuchal
Copy link
Contributor Author

I decided to withdraw work on this RFC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants