The persistent connection mysql_pconnect is handed the same parameters as mysql_connect. The fourth parameter however is the parameter "new_link" which makes no sense for mysql_pconnect and furthermore does not exist as parameter for the PHP function.
This is the function call:
This is the function call for non-persistent calls:
This is the function Synopsis for persistent calls:
This is the Synopsis for non-persistent calls:
Please notice, that in the persistent case, there is no parameter bool $new_link = false, therefore the parameter will be interpreted as client_flag.
Simple solution: Since a new connection does not make sense if using persistent connections anyways, the parameter should be ignored if a persistent connection is to be set up:
This bug is not critical as phpBB does not use the implemented persistent connections at this time and therefore the parameter is used correctly in all cases of normal operation, it will however be an error if persistent connections are used in the future.
This error does not exist in the mssql or postgres classes as the parameter definitions are different in this case.