-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/curl: Refactor cURL to only use FCC #13291
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8aa8c07
ext/curl: Convert handlers.progress to just be a FCC
Girgias 854257f
ext/curl: Convert handlers.sshhostkey to just be a FCC
Girgias 85d1820
ext/curl: Convert handlers.xferinfo to just be a FCC
Girgias d3fb21c
ext/curl: Convert handlers.fnmatch to just be a FCC
Girgias 1dfce9d
ext/curl: Convert handlers.server_push to just be a FCC
Girgias cf9228f
ext/curl: Convert php_curl_write to just use FCC without a function n…
Girgias c3f60a2
ext/curl: Convert php_curl_read to just use FCC without a function na…
Girgias 51c8e21
ext/curl: Remove workaround for old libcurl
Girgias fd4fafd
ext/curl: Create macros to codegen the handling of callable options
Girgias b9731c8
Fix test due to unavailable SSH_HOSTKEY option
Girgias 0994ee2
Add trampoline tests
Girgias 617b186
Remove XFAIL
Girgias e8391d4
Address review comments
Girgias 4b7230b
Address review comments about missing empty FCC assignment
Girgias 431d24a
Remove unnecessary set to NULL/empty FCC
Girgias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Remove unnecessary set to NULL/empty FCC
- Loading branch information
commit 431d24a6be2ff26474687ca4e69f010d56d5a0b1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -446,7 +446,6 @@ static bool _php_curl_multi_setopt(php_curlm *mh, zend_long option, zval *zvalue | |
/* See php_curl_set_callable_handler */ | ||
if (ZEND_FCC_INITIALIZED(mh->handlers.server_push)) { | ||
zend_fcc_dtor(&mh->handlers.server_push); | ||
mh->handlers.server_push = empty_fcall_info_cache; | ||
} | ||
|
||
char *error_str = NULL; | ||
|
@@ -544,7 +543,6 @@ static void curl_multi_free_obj(zend_object *object) | |
|
||
if (ZEND_FCC_INITIALIZED(mh->handlers.server_push)) { | ||
zend_fcc_dtor(&mh->handlers.server_push); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In other places you set it then to the empty fcc, did you forget to do that here? |
||
mh->handlers.server_push = empty_fcall_info_cache; | ||
} | ||
|
||
zend_object_std_dtor(&mh->std); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be set to the empty fcc?