Andrey Hristov
0da5464a81
Fix the test for libmysql, which expects the certificates
...
to be in the directory where the interpreter is started. When
using mysqlnd they should not include path and will be found
in the directory of the script.
2010-06-14 18:23:17 +00:00
Andrey Hristov
83051b1a86
And a fix for MySQL Server which is pre 5.1.23, which doesn't support
...
preserving of the charset when performing change_user. This is libmysql
only code.
2010-06-14 18:19:13 +00:00
Andrey Hristov
1d9c49bb3c
Fixed bug #52082 (character_set_client & character_set_connection reset after
...
mysqli_change_user())
libmysql >= 5.1.23 will PASS, older library versions will fail
2010-06-14 17:16:20 +00:00
Ulf Wendel
afcb62ba1e
Fixing tests
2010-06-10 13:40:13 +00:00
Ulf Wendel
aeae0d1bad
Portability improvement
2010-06-08 14:57:10 +00:00
Ulf Wendel
3e5ac35bd9
Portability improvements
2010-06-08 14:29:05 +00:00
Ulf Wendel
6b1d256af5
More SQL strict mode updates
2010-06-08 13:05:49 +00:00
Ulf Wendel
0fb528edee
Making tests pass strict sql mode.
2010-06-08 10:55:12 +00:00
Andrey Hristov
4a0b4494d4
defensive programming, check before using a resource
2010-06-01 14:16:27 +00:00
Andrey Hristov
4cd5db922b
Fix test
2010-05-31 16:53:33 +00:00
Ulf Wendel
c0a8ce2f61
Updating test to reflect the latest and more verbose mysqlnd error messages, updating mysqlnd error message as well.
2010-05-31 13:56:42 +00:00
Ulf Wendel
9b334da667
Fixing test - make sure it checks the same conditions for libmysql and mysqlnd
2010-05-31 12:55:59 +00:00
Ulf Wendel
fb80ebe102
Fixing test
2010-05-31 12:22:48 +00:00
Ulf Wendel
4b5666a539
Fixing mysqli_stmt_attr_set @ libmysql
2010-05-31 12:10:04 +00:00
Ulf Wendel
ba6ee3fc06
Open server bug: mysqlnd works around it, libmysql fails. Let's skip because MySQL Server version tests are tricky and error prone.
2010-05-27 13:01:17 +00:00
Andrey Hristov
3aa95c59cc
Check before use, because mysqlnd can return NULL
...
and this will crash. However, this can happen only in case of OOM.
2010-05-27 12:44:10 +00:00
Ulf Wendel
6356bcbbb9
Test fixes and updates to work with a wider range of MySQL server configs
2010-05-27 12:09:39 +00:00
Andrey Hristov
0d468290be
Fix test
2010-05-26 13:36:49 +00:00
Andrey Hristov
d6458c3b1e
Add checks to check the underlying pointer in the resource.
...
It can happen that the underlying pointer is freed (like in
the case of connection reconnect), and then it cannot be allocated
anymore, which means that NULL will be used consequently by the
functions that fetch the resource and the crash is immediate.
2010-05-26 07:28:43 +00:00
Andrey Hristov
c91c86b743
Remove duplicated code.
...
Use one centralized functions for data extraction.
2010-05-18 11:50:31 +00:00
Andrey Hristov
87bac04bf1
Better fix for #51605
2010-05-13 11:05:09 +00:00
Andrey Hristov
d3b7aaa3fc
One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc
2010-05-11 15:55:07 +00:00
Andrey Hristov
ab232ebb09
Fix for mysqli_stmt_execute.phpt, should be ran only against
...
4.1+ servers. MySQL's SLEEP function is available since 5.0.12, thus
the tests that use this function should be ran only if the server
is at least 5.0.12.
2010-05-11 15:49:03 +00:00
Andrey Hristov
fd6f3961f8
These tests should be run only if mysqli uses mysqlnd. Part of fix for
...
Bug #51712 Test mysql_mysqlnd_read_timeout_long must fail on MySQL4
2010-05-11 15:27:03 +00:00
Andrey Hristov
962aa93ec7
Fix for bug #51605 (Mysqli zombie links)
2010-05-11 10:03:16 +00:00
Andrey Hristov
b72437494b
Add a test case for the recently fixed memleak
2010-04-29 13:19:57 +00:00
Andrey Hristov
16e4bd5d58
Try blob columns instead of int, and insert a lot of data at once
2010-04-29 12:07:02 +00:00
Andrey Hristov
3d900d4cad
Fixed very rare memory leak in mysqlnd, when binding thousands of columns
2010-04-27 12:32:34 +00:00
Andrey Hristov
8525f7bb02
Test case for the buffer overflow in mysqlnd_change_user
2010-04-27 08:45:23 +00:00
Kalle Sommer Nielsen
cb30330800
Merge safe_mode changes into extensions that are in sync in both branches
2010-04-26 23:55:03 +00:00
Andrey Hristov
af6dd192b3
Fix for bug #51647 Certificate file without private key (pk in another file) doesn't work
2010-04-23 13:54:40 +00:00
Felipe Pena
45b68febe9
- Fix mem. leak
2010-04-21 12:52:24 +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
be73f948d2
Fixing the second test
2010-04-08 13:18:52 +00:00
Andrey Hristov
48c3d20dd4
one more fix and both work with libmysql and mysqlnd
2010-04-08 10:53:38 +00:00
Andrey Hristov
8338d48828
Fix for bug #51026 ssl not working
2010-04-08 09:01:21 +00:00
Andrey Hristov
48392f04fa
Another fix for the 16 chars user limitation of MySQL
2010-04-07 18:28:46 +00:00
Andrey Hristov
7670d2948d
Fix test. The usernames in the server are 16 chars long
2010-04-07 18:05:42 +00:00
Andrey Hristov
94cd357f5b
Make it coupled - what is allocated with mnd_ should be freed
...
with mnd_ and vice versa.
Added mnd_pestrndup and mnd_pestrdup, which wrap the normal
calls to be able to track this calls.
Fixed some failing tests.
2010-03-29 17:04:16 +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
Andrey Hristov
78887ff757
Fix a segfault when using a mysqli object after unsuccesssful connect, the
...
handle should have been allocated with mysqli_init().
2010-03-24 15:17:57 +00:00
Andrey Hristov
7496cc761e
decouple the methods in MYSQLND_STMT from the data,
...
needed to move to a new structure MYSQLND_STMT. Makes
the code cleaner and less error-prone.
Also fix PDO/MySQL which directly touch mysqlnd internals
instead of using API calls.
2010-03-16 12:36:57 +00:00
Andrey Hristov
ccfd9cd744
allow persistency of PS
2010-03-12 13:03:46 +00:00
Johannes Schlüter
eb0de2af90
revert 293939 Fixed bug #50636 (MySQLi_Result sets values before calling
...
constructor)
2010-02-11 21:42:48 +00:00
Ulf Wendel
7c7d7ac1fa
No idea which recent change has cause this little API change, however it is not a big change and maybe it is even an improvement.
2010-02-02 13:10:50 +00:00
Ulf Wendel
8aa8b6135b
Tests related to #50727
2010-02-01 12:18:50 +00:00
Andrey Hristov
6407250e70
Fix for bug#50772
...
mysqli constructor without parameters does not return a working mysqli object
2010-01-25 13:23:32 +00:00
Andrey Hristov
36a037d236
Fix build of mysqli when libmysql is used, mysqlnd_portability.h
...
might not be available for some weird reasons. Added the macros
that we need, in that case
Code by Jess Portnoy
2010-01-14 09:47:57 +00:00
Ulf Wendel
795f716832
Updating test to new libmysql feature set (first introduced in MySQL 6.0 but now backported to MySQL 5.5).
2010-01-04 15:29:18 +00:00
Ulf Wendel
bd4c681a42
Fixing test
2010-01-04 14:59:04 +00:00