-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 guzzle with PHP Version 7.3.0 #1561
Comments
Just wondered if you looked at this. There is a simple work-around, but I don't know the consequences. - } elseif (fseek($this->stream, $offset, $whence) === -1) {
+ } elseif (fseek($this->stream, $offset) === -1) { |
Hi @drrhf. I'm just getting up to speed here and haven't had a chance to look at this one. It sounds like you verified that this is an issue with Guzzle? Have you opened an issue for Guzzle on github? I don't know what has changed there between Guzzle versions and PHP versions, but altering vendor code isn't a great solution; composer will inevitably overwrite that file and you will lose your change. I will review this in depth soon and verify that we're interfacing with Guzzle correctly. Could you provide me a sample of your code that leads to your stack trace above? |
Have you opened an issue for Guzzle on github? No. altering vendor code isn't a great solution; composer will inevitably overwrite that file and you will lose your change. I agree. Could you provide me a sample of your code that leads to your stack trace above? This will take me some time and I am not sure how useful it will be to you. I use a MVC architecture, with different operations in several different files. I think the key point is that the code works perfectly with PHP version 7.2.8. It seems that maybe there was a change in the fseek function between the two PHP versions. |
This has been fixed upstream. |
Hi @jdpedrie. I made the fix you cited in my local code and the program works properly. Thanks, Bob |
@drrhf I'll work on getting something released this week. |
@drrhf We just tagged v2.2.3: https://github.com/googleapis/google-api-php-client/releases/tag/v2.2.3 |
Thank you very much. |
I have a problem with PHP Version 7.3.0 (similar to what I had earlier with bug #1507).
I am using the latest release: google-api-php-client-2.2.2., which apparently uses Guzzle 6.3.
My code works perfectly now with PHP Version 7.2.8.
However, when I switch to PHP Version 7.3.0, I get the following error:
It seems there may be a Guzzle statement that is incompatible with PHP Version 7.3.0.
Bob
The text was updated successfully, but these errors were encountered: