MYSQL_TEST_SKIP_CONNECT_FAILURE which controls how to deal with connection
problems. If MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) connection
problems will make a test fail. If you set MYSQL_TEST_SKIP_CONNECT_FAILURE
to any value that evaluates to true in PHP, a test which cannot connect to
the database will be skipped.
With this commit the MySQL internal mysqlnd set of ext/mysql tests is in
sync with HEAD. It's likely that php.net/HEAD fails on quite some tests.
Using ext/mysql from the MySQL internal mysqlnd SVN there should be zero
failures. Merging the MySQL internal mysqlnd SVN into HEAD will happen
soon so that we get a bug free version on php.net in the near future.
We added a flag to check if a MySQL column type is a binary type. If so,
ext/mysql should return data for such columns not as unicode strings but
as binary strings if unicode.semantics is on.
2) Don't even dare to have variables that sound like connection parameters and don't come from connect.inc
3) skipifem.inc is not there for ext/mysql tests
The tests origin from ext/mysqli/tests. ext/mysqli/tests should have a
skipifemb.inc, which is not needed and not available for ext/mysql/tests.
Nevertheless the tests tried to include that file.
my commit messages I might be wrong, it's hard to say what we added to the
tests and I might miss this or that little detail, although I check the diff
before commit.
One tiny change in mysql_close.phpt: don't overrule connection parameter
in any of the tests. Alway take connection parameter, including the database
name ($db), from connect.inc.
broke almost all tests. I'll try to merge the CVS with a working set of
tests from the mysqlnd development repository. With this first set of
changes most tests should run (and pass) again.
Note the additional environment variables in connect.inc that you can
use to control a test run.
More changes to come.