-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Internal error with version 0.2.56 #499
Comments
thanks for reporting. for the time beeing you could disable analysis of write queries via the could you provide a small example repo which reproduces the problem? |
a small repo would be difficult 😬 I can not promise that 🙂 If you like, you can simply set up a Shopware instance 🙈 😅 |
is this something which can reproduced, when you reduce the classes beeing analyzed to a few certain files? do the classes/queries beeing analyzed contain stored procedues or functions or something like that? |
which configuration do you use and which database backend? do you use the plan analyzer? the problem might also depend on the used mysql driver your php is using |
I was not able to reproduce, but have a feeling that this PR might fix the problem: could you test the PR? |
hey, our config looks like that: https://github.com/shopware/shopware/blob/5.7/tests/phpstan-dba-bootstrap.php
if I got that right my driver is |
does this mean I can reproduce the problem somehow after cloning https://github.com/shopware/shopware? if so, with which steps? |
yes 🙂
I tested this workflow and was able to get the same error |
Could you run the repro with |
of course, here we go: Stack traceInternal error: Internal error: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while there are pending result sets. Consider unsetting the previous PDOStatement or calling PDOStatement::closeCursor() in file /home/mt/www/5.7dev/tests/Functional/Models/Mail/LogTest.php
|
Thx for the stacktrace. I don't see the cause of the problem yet though. I need to ask for a smaller repo/repro, or alternatively you might make shopware a github sponsor of mine, so my expenses/time are/is somehow covered |
give me some time, to check those two options 😉 |
hey @staabm just FYI: unfortunately we are currently not able to sponsor your work 😕 and also finding some time to create a smaller example is currently not possible for me 🙈 but if it is okay for you, I would like to leave this open and it is still on my to do list 👍 |
sure, its still an issue :-). maybe someone else will find the time looking into it. |
hey there 👋
after not updating for a while I tried to install the latest version on shopware/shopware today.
Unfortunately it seems that the new feature introduced with
0.2.55
"analyzeWriteQueries" causes an internal error while checking the code with PHPStan. The same error occurs on0.2.55
with the enabled config.Thanks for any advise 🙂
If more information is needed, just let me know 👍
The text was updated successfully, but these errors were encountered: