Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Search in database fails if locale not set to "en" #12881
Steps to reproduce
Search returns results. You can see expected behaviour if your locale is "en"
I get an error message (locale dependant):
Error in php error log:
Seems the problem is select_string only accepts integers but it is being passed a string because all mysql values are returned as strings and the value is not casted as integer.
Suggested fix (at least works for me):
Operating system: CentOS 6
Web server: Apache 2.4.18
Database: mySQL 5.6.34
PHP version: PHP 5.5.21
Browser: Firefox 50.1
Operating system: XUbuntu 16.04
It is important to have an up-to-date php-gettext to reproduce. (1.0.12)
However please note that this is a PMA bug, not a gettext bug. The ngettext function definition says that the third parameter should be an int , but since version 1.0.12 they are enforcing it.