]> granicus.if.org Git - php/commit
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
authorAndrey Hristov <andrey@php.net>
Fri, 26 Mar 2010 16:58:25 +0000 (16:58 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 26 Mar 2010 16:58:25 +0000 (16:58 +0000)
commitec36ac1610abc321d18586304fe8d28f3d5190c3
treef28e5fa6a445e65e113dcacdbd7fd0585052994f
parent53cfb3d53df9e2115f404bb98d89653b7a5bbd1d
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
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.
ext/mysql/tests/connect.inc
ext/mysqli/tests/connect.inc
ext/mysqli/tests/mysqli_poll_kill.phpt
ext/mysqlnd/mysqlnd.c
ext/mysqlnd/mysqlnd_result.c
ext/mysqlnd/mysqlnd_wireprotocol.c