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
pear DB.php warning little problem with php 7.2 #1184
There is a little warning problem with pear DB.php in line 774 and php 7.2. While it is not a nominatim problem, to eliminate the messages during the initial importing and then on the server log, it is possible to change the line 774 in /usr/share/pear/DP.php to: if (!$dsn && !count($dsn))
Can Someone confirm this is right?
What is the error/warning message and where do you see it? Is it once or often?
On my Ubuntu18 I haven't seen warning messages, the file location is slightly different and line 774 is empty for me. Is this the lines
I don't quite see how the variable could be empty or why PHP 7.2 would treat it different.
I forget to mention i am using Centos 7, with php warning messages on. Your line is different from mine, perhaps the DB.php is different....
The warning is issued in 7.2 because the function count() has changed slightely... if the value is scalar you have the message.
Your UBUNTU version is different, perhaps is more modern... and 7,2 compatible