Kamil Tekiela
aab36a774a
Tidy up new my_mysqli in tests
2023-08-01 18:30:46 +01:00
George Peter Banyard
b389846d05
ext/mysqli: Remove catchable fatal error handler
...
Recoverable fatal error haven't been a thing for a while, and proper fatal error have never been catchable
2023-07-29 06:17:20 +01:00
George Peter Banyard
8582d97b8c
ext/mysqli: Stop using global variable in connection test helper
2023-07-29 06:17:20 +01:00
George Peter Banyard
0c21715935
ext/mysqli: Remove conditional function declaration
2023-07-29 06:17:20 +01:00
George Peter Banyard
17a80eb08b
ext/mysqli: Remove custom sys_get_temp_dir() function
...
It has existed since PHP 5.2.1...
2023-07-29 06:17:19 +01:00
Christoph M. Becker
62d393b1ed
Remove support for libmysql-client from mysqli test suite
...
Since mysqli can no longer be built against libmysql-client, there is
no longer the need to distinguish.
While we're at it, we also drop the superfluous is_object() checks.
Closes GH-9652.
2022-10-06 12:09:14 +02:00
Kamil Tekiela
304f758bf8
Remove redundant checks
...
I am unsure what this condition was actually supposed to do, but it
seems like it was only checking for 1 (loose check)
2021-11-09 14:00:30 +00:00
Kamil Tekiela
0ac7dacc23
Fix PHP DocBlock
2021-11-09 14:00:30 +00:00
Kamil Tekiela
97bef32976
Invalid condition in connect.inc
2021-11-09 14:00:30 +00:00
Kamil Tekiela
1b3a73bbd7
Refactor have_innodb function
2021-11-09 14:00:30 +00:00
Nikita Popov
625b89af2f
Deprecate mysqli::init()
...
In favor of parent::__construct().
Part of https://wiki.php.net/rfc/deprecations_php_8_1 .
2021-07-08 16:45:05 +02:00
Dharman
5e1056edb6
Change the default error mode of mysqli
...
Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli
error reporting default. Explicitly call
mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior.
RFC: https://wiki.php.net/rfc/mysqli_default_errmode
Closes GH-6629.
2021-03-15 14:55:31 +01:00
Dharman
8573eb9e5c
Add CLEAN sections to mysqli and PDO mysql tests
...
Closes GH-6756.
2021-03-15 11:01:12 +01:00
Nikita Popov
f4a600be04
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80312 : change default engine from MyISAM to InnoDB in tests
2020-11-17 13:16:17 +01:00
Darek Slusarczyk
79a606bd95
Fix #80312 : change default engine from MyISAM to InnoDB in tests
...
Change mysqli and pdo_mysql tests configuration to use by default
InnoDB instead of MyISAM.
Closes GH-6405.
2020-11-17 13:15:15 +01:00
George Peter Banyard
7a95e943d6
Promote warnings to Error in MySQLi extension
...
Closes GH-5803
2020-09-15 19:12:02 +02:00
Ayesh Karunaratne
d114812faf
[ci skip] Various typo fixes in stub comments and CHANGES file
2020-06-25 23:32:40 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Fabien Villepinte
e1afd9b213
Modernize some connectors in tests to remove env key duplication
2019-08-30 10:33:01 +02:00
Christoph M. Becker
a6fa097ceb
No more need to cater to pre-PHP-5.3 or PHP-6 versions
2019-07-12 18:55:34 +02:00
Derick Rethans
579562176b
Fixed bug #67348 : Reading $dbc->stat modifies $dbc->affected_rows
2019-06-21 16:51:52 +01:00
Andrey Hristov
c133515811
Merge branch 'PHP-5.6' into PHP-7.0
2015-10-27 13:32:45 +01:00
Andrey Hristov
6d51b7b2e3
Another Fix for Bug #68344 MySQLi does not provide way to disable peer certificate validation
...
Added the possibility to explicitly state that the peer certificate should not be checked.
Back to the default - checking the certificate.
Exported MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT
Usage : mysqli_real_connect( , , , , , MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT)
If mysqli_ssl_set() is not called, but only MYSQLI_CLIENT_SSL is passed, without the (don't) very flag,
then no verification takes place.
2015-10-27 12:59:09 +01:00
Xinchen Hui
d695a44a7e
Revert previously commit by accident
2015-03-13 12:02:39 +08:00
Xinchen Hui
0584b2df3f
Update NEWS
2015-03-10 15:38:34 +08:00
Nikita Popov
294e7c295f
Annother attempt at fixing the mysqli_fetch_field tests
...
Instead of character set detection (which doesn't always work correctly)
fetch the character set info using mysqli_get_charset(). To make sure that
the returned info applies to all of client, connection and result
explicitely set utf8 as charset using mysqli_set_charset() before. I'm not
sure whether that last part is really necessary, but included it to be
safe.
2012-08-17 19:47:59 +02:00
Ulf Wendel
eb16017160
More parenthesis, credits to Nikita Popov
2011-09-06 16:13:03 +00:00
Ulf Wendel
5ec2ee6c4d
Prevent Notice
2011-09-06 13:39:46 +00:00
Ulf Wendel
56a2ff3b00
Hopefully, this is an even better way to check for InnoDB support as of MySQL 5.6.1
2011-09-02 11:06:51 +00:00
Ulf Wendel
70b9029d9e
As of MySQL 5.6.1 the server variable have_innodb is no more. Updating InnoDB check...
2011-09-02 10:38:51 +00:00
Ulf Wendel
43db337405
Test update. 5.4+ throws a catchable fatal error, 5.3 does not.
2011-07-25 14:53:01 +00:00
Ulf Wendel
1ab38567b9
Let's try not to have 'uft8'-only tests and avoid setting the charset upon connect. I've changed the tests to make no assumptions on the server charset setting. var_dump()/EXPECTF tests got replaced with dynamic tests which try to take the current charset into account.
2010-09-23 15:08:43 +00:00
Andrey Hristov
1af3e68880
Unify, force one charset at connect, thus fixing
...
test failures because different servers have different
system charsets.
2010-09-22 18:25:33 +00:00
Andrey Hristov
7868bca437
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
210353caee
Using require[_once] instead of include. Adding logic to connect.inc to detect multiple inclusions of connect.inc which leads to a Fatal error because of my_mysqli_connect() function redefinition. Some tests did include connect.inc twice -> run-tests - even the one from trunk - did not detect Fatal error in SKIPIF -> false-positive test result...
2009-10-19 20:07:25 +00:00
Ulf Wendel
8ad273c88e
Replacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS to be able to test all connection flags. Fixing some test.
2009-09-25 10:54:16 +00:00
Ulf Wendel
e123cae8ac
Proxying as many connect calls as possible to make testing of the compression protocol @ mysqlnd easier. By setting the environment variable MYSQL_TEST_COMPRESS you can tell the tests to set the MYSQLI_CLIENT_COMPRESS flag upon connect.
2009-09-24 12:51:03 +00:00
Ulf Wendel
4df1f0d912
Fixing mysqlnd version test to run some four previously skipped tests. There is no proper way to check the mysqlnd version. The best one can do is adapt the tests to what PHP 5.3 and PHP 6.0 return today.
2009-07-06 15:43:59 +00:00
Ulf Wendel
534f770ae2
Trying to make them not fail but skip if they cannot connect to the DB.
2007-10-12 11:51:22 +00:00
Ulf Wendel
1884a16d01
Primarily whitespace/CS - synching with mysqlnd SVN repository
2007-07-23 12:04:19 +00:00
Ulf Wendel
6fff9f4534
Starting to merge the latest set of ext/mysqli tests from the mysqlnd
...
SVN repro into HEAD. Again, it might happen that I crash the set of tests
and don't mention one or the other change while merging. Blame me...
1) Note the new environment variables to control the test run
2) Variables $IS_MYSQLND and $MYSQLND_VERSION are for writing portable tests
3) sys_get_temp_dir function is for PHP5/PHP6 portability
2007-07-12 20:04:17 +00:00
Georg Richter
1432e7b40f
added unicode support for mysqli extension
2006-09-26 13:06:13 +00:00
Hartmut Holzgraefe
eef7cb2d75
make sure embedded server is correctly initialized
2006-07-11 23:41:40 +00:00
Ilia Alshanetsky
00f14fbd74
Slightly more reliable current path detection.
2005-06-22 13:41:59 +00:00
foobar
8d00609794
- We skip tests when the extension is not loaded..in the php.ini
2005-05-09 21:16:49 +00:00
Andrey Hristov
02d0f72596
also test shared builds
2005-05-09 16:23:22 +00:00
Georg Richter
6b49e2d9e7
fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
...
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Georg Richter
0b4c108bd7
Added new classes:
...
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
2005-01-07 14:59:59 +00:00
Georg Richter
bad0ab1576
include file for test
2003-02-13 18:21:37 +00:00