- Moved the ini_set() entries into a separate script 'setupdefault.inc'
- Let mysql_affected_rows and mysql_insert_id test cases use the newly created script
With the ini_set() statements inside connect.inc, some test cases would be forced to 'undo' them in order to test other scenarios.
Tested on all three dev lines with and without passing db credentials. No changes detected.
Replaced skipifdefaultconnectionfailure.inc by three additional ini_set() statements in connect.inc for the default connection settings
Patch also includes a typo in connect.inc concerning mysql.default_socket
as it is in when compiled from source and the default for mysqlnd.
SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode
(ext/mysql and ingres) needs the socket.
Fix possible crashes in mysqlnd. When packets are shorter, functions should
return error.