Andrey Hristov
6242101f2b
Fix for bug 54674..typo in the check of SJIS
2011-05-09 16:20:35 +00:00
Andrey Hristov
8b33e6fae0
fix buffer overflow - overwriting with 0x0, due to
...
unchecked buffer size. This can be easily workarouned on
existing unpatched systems by increasing
mysqlnd.net_cmd_buffer_size ini variable to more than 8k
2011-03-24 16:12:18 +00:00
Ulf Wendel
a270348c24
Limit test with 65k params, should crash mysqlnd
2011-03-24 13:40:06 +00:00
Ulf Wendel
8307f9e892
Coverage for a 'silent server protocol change' from the past for which both mysqlnd and libmysql have workarounds.
2011-03-23 08:57:52 +00:00
Ulf Wendel
8bbd451647
Test coverage for some of the cases where LAST_INSERT_ID() and API *_insert_id() differ as documented in the MySQL manual in particular the C API reference section
2011-03-17 15:18:22 +00:00
Andrey Hristov
56cdee2def
Fix for bug #54221 mysqli::get_warnings segfault when used in multi queries
2011-03-17 10:28:53 +00:00
Johannes Schlüter
0448336c2c
- Fix tests. temp dir might be something other than /tmp
2011-02-22 14:49:32 +00:00
Andrey Hristov
1bdc780d30
fixed a problem in mysqlnd. 0 was always as num_rows returned for
...
unbuffered sets (text protocol and PS).
2011-02-16 16:36:33 +00:00
Ulf Wendel
0b474317fd
Don't expect a certain server reply, it is undefined what happens.
2011-01-28 13:41:02 +00:00
Ulf Wendel
ad8892f91d
Fix tests: don't expect people to use a certain db/schema for testing
2011-01-17 13:06:44 +00:00
Kalle Sommer Nielsen
d244ac46a1
MFT: Added 'db' and 'catalog' keys to the field fetching functions (FR #39847 )
2011-01-17 11:20:54 +00:00
Andrey Hristov
eaaef0d870
Proper fix for
...
Bug #53503 mysqli::query returns false after successful LOAD DATA query
which fixes als #56349 , same behavior but in ext/mysql. Both due to a bug
in mysqlnd. Never was a problem with libmysql.
Also fixed the 53503's test case as it always reported PASS, even when there
should have been a failure.
2011-01-07 14:22:30 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Pierre Joye
aea6771d19
- add phpize support for windows, need a nmake install for now (nmake devel-pkg version is coming), works exactly the same as on unix, or should :)
2010-12-13 18:43:10 +00:00
Kalle Sommer Nielsen
071513562d
Fixed bug #53425 (mysqli_real_connect() ignores client flags when built to call libmysql)
...
# Based on patch by tre-php-net at crushedhat dot com
2010-12-12 18:00:25 +00:00
Kalle Sommer Nielsen
b529d43c0d
Fixed bug #53503 (mysqli::query returns false after successful LOAD DATA query)
2010-12-12 16:17:50 +00:00
Andrey Hristov
9f045cd40e
fix test after newly introduced constant
2010-12-02 19:11:41 +00:00
Andrey Hristov
334e62a77d
and export the new constant
2010-12-02 14:21:23 +00:00
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