Commit Graph

564 Commits

Author SHA1 Message Date
Andrey Hristov
212c00cd1a Fix snapshot build 2008-04-08 07:46:05 +00:00
Felipe Pena
3ed829f10e - Added some UEXPECTs
- Fixed some tests
2008-03-22 14:58:29 +00:00
Dmitry Stogov
a0378d3514 Fixed test 2008-03-18 06:44:54 +00:00
Andrey Hristov
60869b3e8e Update mysqlnd, ext/mysql and ext/mysqli - now possible to compile with different
configurations one or the another extension to use libmysql or mysqlnd mixed in
one binary
2008-03-10 20:27:15 +00:00
Andrey Hristov
a8e4046c72 - Fix a warning in php_mysql.c
- Fixed #44371 Extension compile failed
2008-03-10 09:16:13 +00:00
Johannes Schlüter
0defdae045 - Fix typo in skipif 2008-03-09 01:06:38 +00:00
Felipe Pena
d005d404e0 Fix test 2008-03-08 23:14:16 +00:00
Andrey Hristov
cd9b7889ec Bug fixed in MySQL 5.0.46 2008-03-08 15:17:45 +00:00
Felipe Pena
e3ca51413c MFB: Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags) 2008-03-04 22:31:38 +00:00
Felipe Pena
a1e8d340c3 New macro for check void parameters 2008-02-28 14:16:25 +00:00
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +00:00
Johannes Schlüter
e55831f370 - Make clear what's going on and avoid overwriting parameters 2008-02-12 20:43:28 +00:00
Felipe Pena
de211f67f3 MFB: Fixed Bug #44094 (SEGFAULT when using mysql_connect()) 2008-02-12 10:15:16 +00:00
Andrey Hristov
533618d2a0 Remove dead code 2008-02-08 09:57:01 +00:00
Andrey Hristov
6d9fdbce50 MFB:
some config.w32 fixes
moved mysqlnd's block allocator to a separate file and also now
it's part of the connection, no MT problems.
2008-01-28 22:54:21 +00:00
Nuno Lopes
2b7d0c4471 remove unused PHP_MYSQL_API macro 2008-01-28 11:16:37 +00:00
Hannes Magnusson
dfebf08378 Fixed bug#43875 (Two error messages returned for $new and $flag argument in mysql_connect()) 2008-01-20 14:10:16 +00:00
Andrey Hristov
dfd4b99e05 Fix build issue 2008-01-19 18:56:19 +00:00
Antony Dovgal
98164c99ac fix test
the library vresion is actually exposed by ext/mysqli, not ext/mysql
2008-01-18 12:48:22 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Antony Dovgal
a4d95c001f plug memory leak on invalid result type 2007-11-08 13:28:38 +00:00
Andrey Hristov
43160de684 Fix the build, the w32 files should look like in 5_3 2007-10-23 10:44:25 +00:00
Andrey Hristov
a0aa80a3f8 Sync mysqlnd with HEAD. Same sources as in 5_3 2007-10-16 20:58:35 +00:00
Ulf Wendel
2ea4b6ba06 Same as for PHP_5_3: Trying to skip tests if they can't connect to the
DB server. Note the environment variable MYSQL_TEST_SKIP_CONNECT_FAILURE
to control if you want tests that can't connect to fail or to be skipped.
2007-10-12 12:32:39 +00:00
Antony Dovgal
cb6053bd55 fix typo 2007-10-12 07:23:44 +00:00
Ulf Wendel
23f2c54784 Test changes for HEAD = synching with 5_3 2007-10-10 10:56:33 +00:00
Ulf Wendel
b67be59f4e Adding tests to ext/mysql in HEAD = synching with 5_3 2007-10-10 10:55:52 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Andrey Hristov
9ac92cfecb Update mysqlnd in HEAD
Updated ext/mysql and ext/mysqli in HEAD
2007-10-02 10:45:27 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Scott MacVicar
98de59fcf0 Fixed bug 42549 (ext/mysql failed to compile with libmysql 3.23) 2007-09-09 16:07:45 +00:00
Ulf Wendel
fb4967900d Same as for ext/mysqli tests: addition of a new environment variable
MYSQL_TEST_SKIP_CONNECT_FAILURE  which controls how to deal with connection
problems. If MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) connection
problems will make a test fail. If you set MYSQL_TEST_SKIP_CONNECT_FAILURE
to any value that evaluates to true in PHP, a test which cannot connect to
the database will be skipped.
2007-08-09 11:53:17 +00:00
Andrey Hristov
de29322de4 Fix crashes with pconn in ext/mysql 2007-08-06 15:11:46 +00:00
Jani Taskinen
6287087e70 - Align help texts and added note about embedded not being available when
the MySQL native driver is used.
2007-07-27 01:09:18 +00:00
Jani Taskinen
a250d34000 I must be blind.. 2007-07-26 19:07:53 +00:00
Jani Taskinen
4323e38314 - copy-paste typo 2007-07-26 18:49:51 +00:00
Jani Taskinen
f3c2a33f42 - Moved mysqnd to it's own directory: It is sort of an extension itself.
(Similar to what ext/libxml is..)
2007-07-25 23:47:33 +00:00
Andrey Hristov
02b2d0a4ac Add missing file 2007-07-24 16:50:20 +00:00
Andrey Hristov
222174e23f Import of mysqlnd and ext/mysql + ext/mysqli patched to be built either
with libmysql or mysqld.

Use --with-mysql=mysqlnd --with-mysqli=mysqlnd to build with mysqlnd.
2007-07-24 16:13:26 +00:00
Ulf Wendel
307d9364ab Whitespace (space to tab)/CS
With this commit the MySQL internal mysqlnd set of ext/mysql tests is in
sync with HEAD. It's likely that php.net/HEAD fails on quite some tests.
Using ext/mysql from the MySQL internal mysqlnd SVN there should be zero
failures. Merging the MySQL internal mysqlnd SVN into HEAD will happen
soon so that we get a bug free version on php.net in the near future.
2007-07-23 07:51:37 +00:00
Ulf Wendel
33c87b15d8 1) Whitespace/CS
2) Playing with column aliases
2007-07-12 16:04:15 +00:00
Ulf Wendel
d649c2e820 Testing SELECT "a" AS "". This is nice to test strcmp() and similar... 2007-07-12 16:03:10 +00:00
Ulf Wendel
e8ed078f81 Blame me for not checking in a version that's been cleaned up with
regards to Whitespace/CS...
2007-07-12 14:24:53 +00:00
Ulf Wendel
2135a5b3f6 Whoever has hacked this function into ext/mysql, here's a "test" for it. 2007-07-12 14:23:56 +00:00
Ulf Wendel
9744d3f9a3 Checking the phpinfo() entries of ext/mysql 2007-07-12 14:22:47 +00:00
Ulf Wendel
d452938ee8 Adding test for mysql_list_tables() 2007-07-12 14:22:15 +00:00
Ulf Wendel
625c02c844 Checks if ext/mysql exposes all constants it should expose. 2007-07-12 14:01:12 +00:00
Ulf Wendel
2d1c3ec2c9 No skipping needed anymore, function is there even with mysqlnd. 2007-07-12 13:58:41 +00:00
Ulf Wendel
e6e029e399 A bit more verbose message in case of problems. It's been helpful to
debug a cross-server version issue.
2007-07-12 13:57:36 +00:00
Ulf Wendel
94e0e4c322 1) Whitespace/CS
2) Fixing [U]EXPECTF to be portable among different MySQL Server versions
2007-07-12 13:50:51 +00:00
Ulf Wendel
894e5c6a5b 1) Whitespace/CS
2) Added test for default link
2007-07-12 13:44:00 +00:00
Ulf Wendel
a6a5638dd3 1) Whitespace/CS
2) Added: skip test with mysqlnd, mysqlnd does not support this function
currently
2007-07-12 13:35:16 +00:00
Ulf Wendel
fd45bad4c8 1) Whitespace/CS
2) Added check for default connection
2007-07-12 13:31:27 +00:00
Ulf Wendel
3809493bd7 1) Whitespace/CS
2) Fixing [U]EXPECTF to accept whatever db/schema name gets used for the
test run
2007-07-12 13:27:26 +00:00
Ulf Wendel
0ccc7d618f 1) Whitespace/CS
2) Tiny check for default link added
2007-07-12 10:52:23 +00:00
Ulf Wendel
063987fed5 1) Whitespace/CS
2) Portability: don't expect any values and have them in the [U]EXPECTF,
if they will be available only with certain MySQL Server versions.
2007-07-12 10:47:00 +00:00
Ulf Wendel
da36f2be2a 1) Whitespace/CS
2) One line added to test default connection
2007-07-12 10:30:03 +00:00
Ulf Wendel
78628dad2a 1) Whitespace/CS
2) Test mysql.default_socket only if we're using a socket to connect
2007-07-12 10:25:40 +00:00
Ulf Wendel
e58bb46329 Whitespace/CS only 2007-07-12 10:18:14 +00:00
Ulf Wendel
dcf91469db Whitespace/CS only 2007-07-11 15:51:48 +00:00
Ulf Wendel
cf0231da96 Whitespace/Coding Standards and check added for default connection. 2007-07-11 15:49:32 +00:00
Ulf Wendel
c1ab1512fd Whitespace only 2007-07-11 15:47:38 +00:00
Ulf Wendel
7ff686d786 Whitespace and more testing. 2007-07-11 15:26:07 +00:00
Ulf Wendel
90ad13cca1 Whitespace and new checks for default connection. 2007-07-11 15:17:47 +00:00
Ulf Wendel
d552edf5e8 Whitespace only 2007-07-11 15:13:10 +00:00
Ulf Wendel
3f0339a42c Mainly Whitespace/CS changes. Partly "too many arguments" check added. 2007-07-11 15:07:28 +00:00
Ulf Wendel
21e47c9a03 Whitespace and new "too many arguments" check. 2007-07-11 14:45:53 +00:00
Ulf Wendel
8777568cc2 Whitespace/Coding Standards and new check what happens if one tries to
free not a mysql resource but a file resource.
2007-07-11 14:44:18 +00:00
Ulf Wendel
2af97387bb Whitespace/Coding Standard 2007-07-11 14:41:54 +00:00
Ulf Wendel
dabb012f91 Removing reference to skipifemb.inc which is not needed and
Whitespace/Coding Standards.
2007-07-11 14:36:26 +00:00
Ulf Wendel
3822833c37 Whitespace and the usual suspect: skipifemb.inc 2007-07-11 14:28:22 +00:00
Ulf Wendel
4ec515c660 Whitespace/Coding Standards, removal of skipifemb.inc, improved testing
and checking for expected field types.
2007-07-11 14:11:18 +00:00
Ulf Wendel
857954815f Whitespace and - as usual - removing skipifemb.inc 2007-07-11 14:01:39 +00:00
Ulf Wendel
cbe689d16c Whitespace/Coding Standards, removing reference to skipifemb.inc,
tweaking EXPECTF.
2007-07-11 13:56:37 +00:00
Ulf Wendel
6c353e1046 Whitespace. Removing reference to skipifemb.inc. 2007-07-11 13:51:31 +00:00
Ulf Wendel
30df81aa62 Aside from whitespace / coding standards this one is more interesting.
We added a flag to check if a MySQL column type is a binary type. If so,
ext/mysql should return data for such columns not as unicode strings but
as binary strings if unicode.semantics is on.
2007-07-11 13:36:11 +00:00
Ulf Wendel
b0ac1f0171 Whitespace / Coding Standards 2007-07-11 13:29:41 +00:00
Ulf Wendel
0880484234 1) Whitespace / Coding Standards
2) Don't even dare to have variables that sound like connection parameters and don't come from connect.inc
3) skipifem.inc is not there for ext/mysql tests
2007-07-11 13:22:17 +00:00
Ulf Wendel
8324e16636 Whitespace/Coding Standards.
The tests origin from ext/mysqli/tests. ext/mysqli/tests should have a
skipifemb.inc, which is not needed and not available for ext/mysql/tests.
Nevertheless the tests tried to include that file.
2007-07-11 12:57:57 +00:00
Ulf Wendel
7943e812fb Whitespace/Coding Standards.
Test for default link added.
2007-07-11 12:50:34 +00:00
Ulf Wendel
b9f536333c Those two should be whitespace / coding standards only. However, in some of
my commit messages I might be wrong, it's hard to say what we added to the
tests and I might miss this or that little detail, although I check the diff
before commit.
2007-07-11 12:47:23 +00:00
Ulf Wendel
9ac87ac9dd Should be whitespace/coding standards changes only. 2007-07-11 12:28:46 +00:00
Ulf Wendel
1aa8031a0f Mostly whitespace (replacing spaces with tab). Additional, weak test for
"host:port:socket" syntax, just to make sure we cover the underlying
C code.
2007-07-11 12:26:21 +00:00
Ulf Wendel
4c1181a08a Whitespace: replacing spaces with tab to follow coding conventions.
One tiny change in mysql_close.phpt: don't overrule connection parameter
in any of the tests. Alway take connection parameter, including the database
name ($db), from connect.inc.
2007-07-11 11:57:45 +00:00
Ulf Wendel
5a888bc9bd Trying to fix broken tests. The last set of files committed a few weeks ago
broke almost all tests. I'll try to merge the CVS with a working set of
tests from the mysqlnd development repository. With this first set of
changes most tests should run (and pass) again.

Note the additional environment variables in connect.inc that you can
use to control a test run.

More changes to come.
2007-07-11 11:12:10 +00:00
Scott MacVicar
8842c24db7 MFB: Fixed bug #41350 (my_thread_global_end() error during request shutdown on Windows). 2007-06-25 20:19:30 +00:00
Antony Dovgal
806a90877b reset active_result_id when fetching persistent connection
patch by Peter Christensen
2007-06-07 12:17:16 +00:00
Antony Dovgal
a9230e2726 fix test 2007-05-29 12:01:14 +00:00
Ilia Alshanetsky
cbcb1840f3 MFB 2007-05-28 23:43:24 +00:00
Scott MacVicar
1369b797a9 MFB: Typo from old parsing API spotted by bjori 2007-05-14 18:10:10 +00:00
Scott MacVicar
1029532b2f MFB: Add mysql_set_charset() so that the connection encoding can be changed. This is similar to the SET NAMES statement but allows the mysql_real_escape_string to use the correct character set. 2007-05-14 17:11:50 +00:00
Antony Dovgal
5e5dbfa35e revert 2007-04-23 09:32:36 +00:00
Antony Dovgal
a95ac253db fix #41083 (mysql_ping() requires MYSQL_OPT_RECONNECT to be set since MySQL 5.0.13) 2007-04-14 10:19:10 +00:00
Martin Kraemer
e46b1b3747 Typo 2007-03-14 09:49:58 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
4cf068ac32 include basic_functions.h for php_get_current_user() declaration 2006-12-28 15:44:50 +00:00
Andrey Hristov
c60949d0b1 space to tab 2006-11-22 10:11:58 +00:00
Georg Richter
cdd3e8be92 added testcases for ext/mysql (written by Ulf Wendel) 2006-11-19 12:14:44 +00:00
Georg Richter
317564fc1a added unicode support for ext/mysql 2006-11-19 12:10:19 +00:00