Skip to content
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

ext/curl: Various minor clean-up refactorings #18042

Merged
merged 1 commit into from
Mar 15, 2025

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Mar 13, 2025

No description provided.

@Girgias Girgias marked this pull request as ready for review March 13, 2025 13:31
@Girgias Girgias requested a review from adoy as a code owner March 13, 2025 13:31
@@ -2466,7 +2465,7 @@ PHP_FUNCTION(curl_exec)

if (!Z_ISUNDEF(ch->handlers.std_err)) {
php_stream *stream;
stream = (php_stream*)zend_fetch_resource2_ex(&ch->handlers.std_err, NULL, php_file_le_stream(), php_file_le_pstream());
php_stream_from_zval_no_verify(stream, &ch->handlers.std_err);
Copy link
Member

@devnexen devnexen Mar 14, 2025

Choose a reason for hiding this comment

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

nit: I think you would need to change other instances as well e.g. line 152, because now you have named resource, i.e. stream, wdyt ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah right, I somehow missed them.
I'll split this into a different commit.

@Girgias Girgias force-pushed the curl-minor-refactoring branch from 4833440 to 7b76aec Compare March 15, 2025 16:20
@Girgias Girgias merged commit d8e7f36 into php:master Mar 15, 2025
9 checks passed
@Girgias Girgias deleted the curl-minor-refactoring branch March 15, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants