Ulf Wendel
b343748d56
Testing for the two new statistics 'bytes_received_real_data_normal' and 'bytes_received_real_data_ps'
2010-11-12 12:21:35 +00:00
Andrey Hristov
77d160772f
Fix bad types, because zend_parse_xxx expect signed integers
...
for lengths, no matter how stupid this is :)
2010-11-10 13:57:09 +00:00
Andrey Hristov
837391a9a7
two new stats
2010-11-05 20:07:34 +00:00
Andrey Hristov
4f62c099cd
Fix for Bug #52686 mysql_stmt_attr_[gs]et arg. points to incorrect type
2010-10-06 11:11:02 +00:00
Andrey Hristov
062ddaa700
fix shadowing of parameters
2010-10-06 06:08:55 +00:00
Ulf Wendel
ccaff0e994
Greetings from SunCC.
...
ext/mysqli/mysqli_driver.c", line 127|128|129: warning: syntax error: empty declaration
2010-10-05 12:42:53 +00:00
Kalle Sommer Nielsen
87edd143ed
Fixed compiler warnings in mysqli
...
- mysqli.c: Fix unused variables, they are only used in non-mysqlnd mode
- mysqli_api.c (PHP_5_3 only): Fix constness, add_property_string expects a char *, not a const char *
- mysqli_prop.c: Cast to long, as its below the LONG_MAX and therefore safe
- mysqli_result_iterator.c: Cast to ulong as the iterator member expects that rather than a my_longlong
# In trunk only warnings regarding the zend_property_info
# structure is present and PHP_5_3 is warning free now
2010-10-05 09:40:36 +00:00
Ulf Wendel
234181f690
Fix warnings
...
ext\mysqlnd\mysqlnd_result_meta.c(57) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqlnd\mysqlnd_result_meta.c(64) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqli\mysqli_report.c(50) : warning C4013: 'php_mysqli_throw_sql_exception' undefined; assuming extern returning int
2010-10-05 08:29:54 +00:00
Ulf Wendel
5aca10ee13
Trying to fix compiler warnings (on Windows).
2010-10-04 13:36:23 +00:00
Ulf Wendel
122179478a
Next one... ext/mysqli/mysqli_fe.c", line [many]: warning: syntax error: empty declaration
2010-10-04 10:43:21 +00:00
Ulf Wendel
4113fad4ec
Fixing compiler warning "ext/mysqli/mysqli_prop.c", line [...]: warning: syntax error: empty declaration"
2010-10-04 10:40:16 +00:00
Ulf Wendel
2d925fb216
Sorry for the commit but compiler warnings are annoying and so are white spaces at the end of a line, if one uses an editor which removes them on save and diff's get blown
...
up by white space changes...
Changes:
- remove end of line white space
- fix compiler warning "ext/mysqli/mysqli_priv.h:156:27: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli_fe.h:135:25: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli.c:896:11: warning: extra tokens at end of #ifdef directive"
2010-10-04 10:02:58 +00:00
Ulf Wendel
bc6e920ebc
Fix leak with persistent connections when using mysqli.default_host is used
2010-10-01 08:54:16 +00:00
Andrey Hristov
60327d87a7
Plug a leak in mysqli when in the same script
...
a pconn is reused.
Call end_psession earlier - so will mysqlnd and
the plugins free data earlier.
2010-09-30 18:10:03 +00:00
Andrey Hristov
517fd63c32
fix the test
2010-09-29 11:40:57 +00:00
Andrey Hristov
42a80fac8c
Fixed bug #45921 (Can't initialize character set hebrew)
2010-09-27 12:35:59 +00:00
Ulf Wendel
8bb124394b
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
Ulf Wendel
389965f1de
Merge from head: do not use deprecated function aliases. The test logic is unchanged.
2010-09-23 14:59:13 +00:00
Andrey Hristov
bdaec773b5
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
Ulf Wendel
7f0ec2a127
Test update for sql_mode = ansi
2010-09-22 15:22:22 +00:00
Andrey Hristov
047f0e4d88
update tests
2010-09-22 11:09:29 +00:00
Ulf Wendel
2ff0c392e7
Trying to pimp gcov.php.net code coverage tests.. trying to cover mysqlnd compress code with a standard test run
2010-09-20 19:01:13 +00:00
Ulf Wendel
7f6d8e53fd
Align test to the style used in the other tests
2010-09-20 18:26:11 +00:00
Ulf Wendel
1a40f20729
No reason not to run the tests with libmysql. Its long, long ago that pconnect has been a mysqlnd only feature
2010-09-20 17:26:39 +00:00
Andrey Hristov
531085785b
add test case for 52891
2010-09-20 09:02:31 +00:00
Ulf Wendel
0dc0d76854
Fix test
2010-09-15 08:20:15 +00:00
Andrey Hristov
fc2143b993
unify magic quotes handling. Also fix a problem which
...
resulted in a longjmp in debug PHP,because of usage of
zval that is NULL in a hash context.
2010-09-14 16:09:42 +00:00
Ulf Wendel
4789901728
Test for http://bugs.php.net/52221 . Test will fail with mysqlnd but should pass with libmysql.
2010-09-03 14:20:32 +00:00
Ulf Wendel
48814f96ef
Fix test failure. Add new test for MYSQLI_OPT_INT_AND_FLOAT_NATIVE mysqlnd feature.
2010-09-02 14:57:38 +00:00
Ulf Wendel
f671ad6275
Adding MYSQLI_OPT_SSL_VERIFY_SERVER_CERT for use with mysqli_options().
2010-08-30 16:59:10 +00:00
Andrey Hristov
d9f50d95e3
Add proper magic_quotes_runtime support for mysqlnd, but
...
in mysqli, so we don't need to tamper myslqnd.
magic_quotes_runtime are deprecated and not existant in 5.4, thus
only fixing in the branch.
2010-08-26 14:51:58 +00:00
Ulf Wendel
6338f99d52
Test for http://bugs.mysql.com/bug.php?id=49406 , Binding params doesn't work when selecting a date inside a CASE-WHEN
2010-08-26 13:35:20 +00:00
Andrey Hristov
7a83093a3b
fix the build. two mysqli functions were missing after
...
recent commit - set_charset and get_charset
2010-08-25 15:02:02 +00:00
Andrey Hristov
27567040d2
Fix for bug #52654 mysqli doesn't install headers with structures it uses
2010-08-20 12:25:17 +00:00
Andrey Hristov
c204922c7f
Added utf16 and utf32 support, as in MySQL 5.5, in mysqlnd.
...
Fixed tests, so they don't try to use SET NAMES utf16|utf32,
as character_set_client can't be set to those (the lexer can't
read ucs2, utf16 and utf32).
Added support for 4-byte utf8, as found in MySQL 5.5
2010-08-16 17:44:50 +00:00
Andrey Hristov
0a9ca62a77
Fix test, so it doesn't fail with MySQL 5.5, where InnoDB
...
is the default engine
2010-08-16 16:15:15 +00:00
Andrey Hristov
4d72dba301
detect easily which charset doesn't work
2010-08-16 16:13:55 +00:00
Kalle Sommer Nielsen
e72a69aae6
Changed mysqli_report() to be per-request specific rather than per-process specific ( Fixes #52390 )
2010-08-13 10:43:15 +00:00
Andrey Hristov
a6100682d0
Fix for bug #52413 MySQLi build failure on OS X
2010-08-13 09:57:04 +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
e670162315
Cleanup in trunk. Remove some functions, noted in
...
UPGRADING. sed-ed the tests to change the usage
to the real function name.
2010-07-07 12:09:36 +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
5a4a66cdd5
Fix for bug #52115 mysqli_result::fetch_all returns null, not an empty array
2010-06-18 17:25:41 +00:00
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