Commit Graph

10 Commits

Author SHA1 Message Date
Xinchen Hui
1b9e0de2cc Remove executable permission on inc 2012-10-10 10:44:34 +08:00
Tjerk Anne Meesters
e29302576c Reverted changes in connect.inc based on Ulf's feedback
- 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.
2011-09-12 14:35:45 +00:00
Tjerk Anne Meesters
7170a996c5 Patch to run two more mysql test cases that would usually be skipped.
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
2011-09-04 14:21:27 +00:00
Andrey Hristov
ec36ac1610 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.
2010-03-26 16:58:25 +00:00
Ulf Wendel
ea3ef35f19 Fixing test: it didn't do a select_db and gave a false-positive with libmysql 2009-11-05 11:51:21 +00:00
Ulf Wendel
9bb4db8781 Bail if connect.inc gets included twice. Including twice is most likely a 'bug'. See also http://news.php.net/php.cvs/60720 2009-10-20 08:23:06 +00:00
Ulf Wendel
fbfd13310b Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS 2009-09-28 10:39:42 +00:00
Ulf Wendel
f8156f1607 Trying to skip tests if they can't connect to the DB server.
Currently they have failed by default. Note also the environment
variable MYSQL_TEST_SKIP_CONNECT_FAILURE to control the default (skip or fail)
2007-10-12 11:57:18 +00:00
Ulf Wendel
83911a1e5e Starting to merge the latest set of tests from the mysqlnd development
tree into the PHP 5_3 tree.
2007-10-10 09:47:21 +00:00
Marcus Boerger
d129242ad5 Add some tests 2004-01-12 02:31:08 +00:00