Skip to content
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

mysqli_query throws warning despite using silenced error mode #9841

Closed
kamil-tekiela opened this issue Oct 27, 2022 · 1 comment
Closed

mysqli_query throws warning despite using silenced error mode #9841

kamil-tekiela opened this issue Oct 27, 2022 · 1 comment

Comments

@kamil-tekiela
Copy link
Member

Description

The following code:

<?php

mysqli_report(MYSQLI_REPORT_OFF);
$mysqli = new mysqli('localhost', 'user', 'password', 'test');

$mysqli->query("SELECT (
        SELECT 1 AS val
        UNION ALL
        SELECT 2
    ) FROM dual");

Resulted in this output:

Warning: mysqli::query(): (21000/1242): Subquery returns more than 1 row in ...

But I expected this output instead:

PHP Version

PHP 8.0.20

Operating System

Windows and Ubuntu

kamil-tekiela added a commit that referenced this issue Oct 27, 2022
* PHP-8.0:
  Add NEWS entry for #9841
  Add a temporary fix for insufficient buffer size in mysqlnd (#9835)
  mysqli_query throws warning despite using silenced error mode (#9842)
kamil-tekiela added a commit that referenced this issue Oct 27, 2022
* PHP-8.1:
  Add NEWS entry for #9841
  Add a temporary fix for insufficient buffer size in mysqlnd (#9835)
  mysqli_query throws warning despite using silenced error mode (#9842)
kamil-tekiela added a commit that referenced this issue Oct 27, 2022
* PHP-8.2:
  Add NEWS entry for #9841
  Add a temporary fix for insufficient buffer size in mysqlnd (#9835)
  mysqli_query throws warning despite using silenced error mode (#9842)
kamil-tekiela added a commit that referenced this issue Oct 28, 2022
kamil-tekiela added a commit that referenced this issue Oct 28, 2022
* PHP-8.1:
  Add NEWS entry for #9841
kamil-tekiela added a commit that referenced this issue Oct 28, 2022
* PHP-8.2:
  Add NEWS entry for #9841
@Breeze0017
Copy link

Unable to this unit to download files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@cmb69 @kamil-tekiela @Breeze0017 and others