In function _process_DSN() there is a check for an optional parameter "TYPE", following the pattern "FIELD: [TYPE;] VALUE"
The check is done with
(706) if (strpos($line, ';'))
Instead it should be checked like:
(706) if (strpos($line, ';') !== false)
In my forum I was running on an error. As mentioned in php.net documentation, checking the return value of strpos() should always be explicitly checked against 'false' with the "===" operator (or "!==" for the matter).
With this change I can prevent this error from happening. Maybe it's of general interest to correct this in the official code.
In function _process_DSN() there is a check for an optional parameter "TYPE", following the pattern "FIELD: [TYPE;] VALUE"
The check is done with
(706) if (strpos($line, ';'))
Instead it should be checked like:
(706) if (strpos($line, ';') !== false)
In my forum I was running on an error. As mentioned in php.net documentation, checking the return value of strpos() should always be explicitly checked against 'false' with the "===" operator (or "!==" for the matter).
With this change I can prevent this error from happening. Maybe it's of general interest to correct this in the official code.