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

Trying to access array offset on value of type null Results.php#4445 #16009

Closed
ali-code opened this issue Mar 4, 2020 · 5 comments
Closed

Trying to access array offset on value of type null Results.php#4445 #16009

ali-code opened this issue Mar 4, 2020 · 5 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Milestone

Comments

@ali-code
Copy link

ali-code commented Mar 4, 2020

Describe the bug

Trying to access array offset on value of type null
in ./libraries/classes/Display/Results.php#4445

To Reproduce

Steps to reproduce the behavior:

  1. Go to any db
  2. Click on 'console'
  3. Make any query with empty result and order clause 'select id from table where id < 0 order by id;'
  4. See error

Expected behavior

Empty result response.

Server configuration

  • Operating system: Debian 10.3
  • Web server: Apache/2.4.38
  • Database version: MariaDB - 10.3.22-MariaDB-0+deb10u1
  • PHP version: 7.4.2
  • phpMyAdmin version: 5.0.1

Client configuration

  • Browser: Firefox 73.0.1 (x64)
  • Operating system: Ubuntu 18.04.2 LTS

Additional context

In main database window, tab 'SQL' - work as expected

@MauricioFauth MauricioFauth added the Bug A problem or regression with an existing feature label Mar 4, 2020
@MauricioFauth
Copy link
Member

Probably fixed by cc58506.
Can you confirm @williamdes ?

@williamdes
Copy link
Member

Thank you @MauricioFauth

To be sure @ali-code could you try to download on our website the latest version in development (phpMyAdmin 5.0+snapshot)

@williamdes
Copy link
Member

But maybe the patch @MauricioFauth mentioned should be back-ported to 5.0
The snapshot version may not have the fix for now

@ali-code
Copy link
Author

ali-code commented Mar 5, 2020

I checked on 5.1.0 @ https://www.phpmyadmin.net/try/ - seems to work correctly.

@williamdes williamdes self-assigned this Mar 5, 2020
@williamdes williamdes added this to the 5.0.2 milestone Mar 5, 2020
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Mar 5, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes
Copy link
Member

Thank you for the confirmation
The fix is part of next 5.0 version and next major release

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants