-
Notifications
You must be signed in to change notification settings - Fork 92
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
Bug in setOption method #30
Comments
Hey @bogdaniy, thanks for your response. I understand, Could you add some codes? Expecially your custom option set by |
Code
Result |
I think the problem is in 'vendor/linslin/yii2-curl/Curl.php' on line 154 Original code: My temporary solution: |
Thanks m8s |
When I set some curl params using setOption method and call reset method, some params(set by me) doesn't reloads, because setOption method has not strict check (in_array https://secure.php.net/manual/ru/function.in-array.php#106319) and it goes to defaultParams . Good idea is to make more strict check with in_array strict param or replace it with isset function.
The text was updated successfully, but these errors were encountered: