You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I received "Error 2006: MySQL server has gone away" when trying to execute a prepared statement in my PHP code using mysqli via AcraServer. To reproduce the issue, you should pass "null" as one of the arguments with type "i" (integer). When I execute the query directly to MySQL, it works fine.
To Reproduce
Steps to reproduce the behavior:
Create a schema and a table in your MySQL database (the table should have at least one numeric column).
Connect to an acra-server via mysqli_connect in your PHP code.
Create a SELECT prepared statement with a searching condition by the numeric field.
Bind "null" to the field of your prepared statement.
Execute the statement, get "false" as a result, and receive "Error 2006: MySQL server has gone away" from mysqli_errno and mysqli_error functions.
You can use the archive I attached to the report to reproduce it via docker: docker compose up test-php
Expected behavior
No errors occur. MySQL considers the result of comparison with "null" as FALSE.
Acra configuration files
For launching AcraServer from docker-compose.yml:
Describe the bug
I received "Error 2006: MySQL server has gone away" when trying to execute a prepared statement in my PHP code using mysqli via AcraServer. To reproduce the issue, you should pass "null" as one of the arguments with type "i" (integer). When I execute the query directly to MySQL, it works fine.
To Reproduce
Steps to reproduce the behavior:
You can use the archive I attached to the report to reproduce it via docker:
docker compose up test-php
Expected behavior
No errors occur. MySQL considers the result of comparison with "null" as FALSE.
Acra configuration files
For launching AcraServer from docker-compose.yml:
For AcraServer encryption (it can be omitted, though):
Environment (please complete the following information):
Additional context
You can quickly reproduce the error by launching
docker compose up test-php
from this archive:issue.zip
The text was updated successfully, but these errors were encountered: