Kamil Tekiela
a21edc52aa
Remove unnecessary parentheses around language constructs in mysqli
2023-07-31 23:46:45 +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
1dc51c7b90
Implement mysqli_execute_query() ( #8660 )
2022-07-06 12:23:46 +01:00
Nikita Popov
b5a14e6c04
Port skipif.inc files to EXTENSIONS
2021-06-11 16:27:50 +02:00
Máté Kocsis
4833309bd2
Use typed properties in ext/mysqli
...
Closes GH-6739
2021-03-15 13:11:57 +01:00
Nikita Popov
a03c1ed7aa
Remove vestiges of embedded mysql from tests
2020-09-17 19:02:20 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Derick Rethans
579562176b
Fixed bug #67348 : Reading $dbc->stat modifies $dbc->affected_rows
2019-06-21 16:51:52 +01:00
Nikita Popov
5af586bec5
Remove more PHP 6 leftovers from tests
2016-11-24 22:39:39 +01:00
Tom Van Looy
442fd2f92a
Cleanup tests version checks
2016-11-20 14:16:50 +01:00
Christoph M. Becker
b15eff6386
Fix #32490 : constructor of mysqli has wrong name
...
As of PHP 7 old style constructor names are deprecated, so we rename
mysqli::mysqli() to mysqli::__construct().
2015-09-01 21:44:16 +02:00
Andrey Hristov
43ecd8fe1b
mysqli_savepoint()/mysqli_release_savepoint()
2013-02-08 18:09:50 +01:00
Andrey Hristov
afacdecd1f
Add support for begin_transaction in libmysql mode.
...
Add support for flags and name for commit/rollback in libmysql mode
2013-02-07 18:45:49 +01:00
Andrey Hristov
967a1ebe51
add protection against core dumps if the underlying library returns
...
0x0 for some reason
2012-10-18 15:09:17 +02:00
ULF WENDEL
ccf749e38d
Merge branch 'PHP-5.4'
...
* PHP-5.4:
- BFN
Minor changes for MySQL 5.6
NEWS for 76601c4
2012-09-29 12:21:55 +02:00
ULF WENDEL
20e76f4487
Minor changes for MySQL 5.6
2012-09-29 12:10:24 +02:00
andrey
522595086b
Remove support for local infile handler in mysqli from 5.5
...
This removes the following functions from the API:
mysqli_set_local_infile_default()
mysqli_set_local_infile_handler()
Using these functions is known to be lead to stability problems in
mysqli. It was only enabled when compiling against libmysql. mysqlnd
doesn't have this support for local infile. However, with mysqlnd it can
be emulated by using stream handlers like in:
$c->query("LOAD DATA LOCAL INFILE "http://example.com/import.csv " INTO ...")
All available protocols, as well as user implemented ones can be added.
2012-05-03 12:55:03 +02:00
Ulf Wendel
52e836611f
Improving test to reflect latest API changes
2011-11-03 17:39:39 +00:00
Ulf Wendel
25235313a0
Improving test to reflect latest API changes
2011-11-03 17:39:39 +00:00
Andrey Hristov
93d6c4767b
fix test
2011-10-10 12:50:09 +00:00
Andrey Hristov
11f198b203
Add mysqli_error_list() that returns an array with errors. Typically only
...
one and just one for libmysql. mysqlnd can return generate more than one error
during its work and with mysqli_error() only the last error is being reported.
In the array returned by mysqli_error_list() / $mysqli->error_list, all errors will be found.
The list is reset when the next command is executed
2011-08-04 09:51:26 +00:00
Andrey Hristov
d7b72a0494
Fix for bug #52433 Call to undefined method mysqli::poll()
2010-08-13 09:18:06 +00:00
Andrey Hristov
973e134d2d
Fix for bug #52433 Call to undefined method mysqli::poll()
2010-08-13 09:18:06 +00:00
Andrey Hristov
4dece1a2a9
update tests
2010-07-07 15:53:34 +00:00
Andrey Hristov
ce1bd65d29
arginfo for mysqli, was too fast to commit in trunk instead of one
...
directory up, thus the patch was split in two.
2010-07-07 11:37:35 +00:00
Andrey Hristov
6900399d7e
Arginfo for mysqli
2010-07-07 11:36:29 +00:00
Andrey Hristov
f9ad56eab9
Remove a function that has no usage. The zval cache was disabled/removed
...
in 5.3.0-RC3.
2010-05-26 13:30:19 +00:00
Andrey Hristov
dd9fc198ce
Fix for bug#49234 method not found ssl_set
...
Patch was tested and compiles on Windows. (Thanks Kalle)
2010-04-15 11:01:30 +00:00
Andrey Hristov
c04f752625
Fix for bug#49234 method not found ssl_set
...
Patch was tested and compiles on Windows. (Thanks Kalle)
2010-04-15 11:01:30 +00:00
Ulf Wendel
e76b3982f8
Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway.
2009-12-09 12:06:10 +00:00
Ulf Wendel
671ebe958a
Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway.
2009-12-09 12:06:10 +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
c01b505a44
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
7926037318
MFH - what a wonderful word. After the change in HEAD its easy to do a merge. The merge removes all UEXPECTF sections from the old days. Yes, there have been UEXPECTFs in 5_3. I hope PHP 6 won't change again over time... :-)
2009-05-28 14:33:43 +00:00
Ulf Wendel
85cb084fc5
1) Changing EXPECT[F] sections to work with PHP 5.3 and PHP 6. 2) Merging a couple of fixes I applied to PHP 5.3 only yesterday. The changes should make it a little easier to do MFH and follow the rules in the future as we will soon have identical tests for PHP 5_3 and HEAD.
2009-05-28 14:11:41 +00:00
Johannes Schlüter
00fc56bd92
Fix tests
2009-01-22 21:56:46 +00:00
Johannes Schlüter
074b084852
MFH: export mysql_refresh
...
[DOC] This makes mysql_refresh() as described in
http://dev.mysql.com/doc/refman/6.0/en/mysql-refresh.html
available as mysqli_Refresh() and mysqli->refresh()
MYSQLI_REFRESH_BACKUP_LOG is only available when linking libmysql 6.0
or mysqlnd
2009-01-22 21:01:58 +00:00
Felipe Pena
2632316e80
- Removed UEXPECT(F)
...
- Unicodified some tests
2009-01-06 00:56:04 +00:00
Andrey Hristov
825034cea5
MFH:
...
Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 17:02:18 +00:00
Andrey Hristov
983f575f22
Asynchronous queries for mysqli, when mysqlnd is enabled.
...
Includes 4 tests for mysqli_poll
2008-11-18 16:54:38 +00:00
Andrey Hristov
5da78b297b
Update ext/mysql's and ext/mysqli's tests
...
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:04:58 +00:00
Andrey Hristov
e53f44b9bd
MFB - Bug #44352 mysqli_connect_error() false negative for host errors
2008-03-18 16:58:43 +00:00
Andrey Hristov
caf3e9c3f1
Fixed a bunch of bugs reported in
...
Bug #44352 mysqli_connect_error() false negative for host errors
From now on the mysqli object doesn't have that magic properties, like
error, which were readable but not visible through isset(), property_exists()
and var_dump(). All other ext/mysqli classes were fixed too.
Now it will be easier to debug mysqli based applications.
2008-03-18 16:57:31 +00:00
Ulf Wendel
dd8bda11f8
Those functions have been deprecated and removed. We'll test them only internally
...
but not bother php.net with it. Unless you really want to have tests for deprecated
and removed functionality...
2008-01-08 13:18:46 +00:00
Andrey Hristov
98f88d7a97
Remove RPL functions. They were always experimental and lead to crashes.
...
The underlying functions will be removed from libmysql as of MySQL 6.0, so
it's right time to remove them.
2007-12-28 15:37:52 +00:00
Ulf Wendel
2dd1b35a85
Commiting changes into HEAD = synching with 5_3
2007-10-10 10:49:00 +00:00
Ulf Wendel
97c82d363f
Adding new tests. Again, I'll commit in chunks and try to find acceptable
...
commit sizes.
2007-10-10 10:13:47 +00:00
Ulf Wendel
5846d6b84b
More changes related to MYSQL_TEST_SKIP_CONNECT_FAILURE.
2007-08-09 10:01:20 +00:00
Ulf Wendel
937962ebe6
Adding new tests that check the interface of the classes exported by mysqli
2007-07-23 12:11:38 +00:00