-
Notifications
You must be signed in to change notification settings - Fork 203
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
PHP7.4 & guzzle #289
Comments
Did you dig further into this? |
I tried, but there is some really weird issue going on. It almost seems that files are not completely loaded after x lines. It's very strange. If I find something, I'll make it known here. |
Maybe it's a regression on this php 7.4 bug: https://bugs.php.net/bug.php?id=78406 Tried finding the exact spot where it occurs with xdebug and it seems to happen when the file is included. Looks like It's being reproduced on travis on the 7.4 test suite on #290: Just by having this on the bootstrap it breaks the test suite:
When commenting it the tests run, breaking in other spots, and reporting several errors of this kind when composer tries to autoload some classes:
By commenting It's either a bug on core or some undocumented change on streams that broke the stream processing. |
Bug #78406 is closed and according to https://3v4l.org/jEMEE is no longer reproducible although the underlying logic and the symptoms look very similar. Could anyone who is better familiar with the VCR internals rework the code snippet mentioned above to reproduce the issue in isolation from the VCR itself? Then it could be reported and fixed upstream. |
I have a feeling it is related to this issue goaop/framework#426 |
Could you please try reproducing the bug in isolation from the rest of the VCR code? |
I tried to remove as much as possible. I'm now looking at the patchwork library (https://github.com/antecedent/patchwork), where the streamprocessor of vcr seems to be based off, to see if I can find a solution there. |
@janvernieuwe this is good progress! At bugs.php.net, they accept a code sample that reproduces the problem. The same could be evaluated at 3v4l.org. Could you put all the code in one file and potentially remove some more irrelevant pieces? Once it's reproducible in a single PHP script, we can file a bug. |
I'll take a look on monday, but it happens on include, so the file needs to to be separate in the testing. |
Gets even weirder now. When I add the classes into the file itself instead of including them, the error doesn't seem to be occurring. I left the |
I've filed the bug and referenced the repository above: https://bugs.php.net/bug.php?id=79072. |
Nice, seems like an easy enough fix! |
@janvernieuwe @morozov I'll take a look into this during this week, I want first ensure that #292 and #256 don't get conflict with it :) |
Please see #293. |
Thanks, @carusogabriel. Since #292 is about bumping the minimal required PHP version, I'd like to make sure that the fix for this issue is released before the version is bumped so that PHPBrew can use it before it bumps its own PHP requirement. |
I'd like to bump the issue as we're having trouble with it, as well. |
Unfortunately for me this fixes the initial error like PHP 7.4.1 VCR1.4 with fix from morozov |
I'm on vacation until February 17th. Once I'm back, I'll take a look at this 👍 |
Ah ok. Have a nice holiday! Just for your information: After updating PHP to 7.4.2. I'm getting the following error (incl. fix from morozov):
Without the fix and 7.4.2 it behaves like in the first comment |
We could find a solution for the exception. |
after I switched from my vanilla curl usage to guzzle I run into issues that seem to related to the steam_wrapper issues again. My tests are all getting green, but after PHPUnit prints out the test summary, it won't quit the application successfully. If I run a couple of tests that do not use VCR this behavior doesn't come up. (See the Screenshot. The first test lines are aborted after several minutes of doing nothing [See the It's a little bit frustrating, but changing all tests from VCR to Mockery will take too much time as well. Please please please get VCR working again. Thank you. |
Hey guys, any update here? We could really need a working version for php 7.4. I'm happy to have a look myself if you could point me at least into the right direction? |
@danielbecker please see #293 (comment). |
Guzzle 7.2.0 added support for PHP 8: https://github.com/guzzle/guzzle/blob/7008573787b430c1c1f650e3722d9bba59967628/CHANGELOG.md#720---2020-10-10 Ran into the following php-vcr related bug when updating guzzle, so I had to update php-vcr too: php-vcr/php-vcr#289 PHP-VCR added the fix for the above issue in 1.4.5, but I chose the latest minor version which is 1.5 (1.5.2 at time of writing).
Since upgrading to php7.4 im getting
I have noticed this on multiple projects. I'll try to look into this later today, but as of now it's not really usable on php 7.4.
I only get this error when VCR is turned on.
The text was updated successfully, but these errors were encountered: