]> 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)
commit7868bca437431f95f4b51afa3e4c4b64e45ebad9
tree74522e929e144647f36110a6036be47843d46ca1
parenta2edb7f69c30fbc2cee6f0a4af94226b198ec558
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