Ulf Wendel
534f770ae2
Trying to make them not fail but skip if they cannot connect to the DB.
2007-10-12 11:51:22 +00:00
Ulf Wendel
2027c85be2
Fixing tests.
2007-10-12 11:46:41 +00:00
Ulf Wendel
63103cdbc6
Should be the last commit for HEAD. Now HEAD and 5_3 should have the latest
...
set of ext/mysqli tests. On Linux 32bit we've about 10 tests failing.
Before the commit we had about 20 tests failing with HEAD.
2007-10-10 10:54:02 +00:00
Ulf Wendel
fc13e57d0f
More changes = synching HEAD with 5_3
2007-10-10 10:51:34 +00:00
Ulf Wendel
2dd1b35a85
Commiting changes into HEAD = synching with 5_3
2007-10-10 10:49:00 +00:00
Ulf Wendel
2df3cea685
More updates to the ext/mysqli tests in HEAD = synching with 5_3
2007-10-10 10:46:06 +00:00
Ulf Wendel
eefce01f8d
Adding new tests = making sure we're in sync with the 5_3 branch
2007-10-10 10:43:39 +00:00
Andrey Hristov
942e348307
MFB: Move declarations from the public header file.
2007-10-08 15:40:26 +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
Nuno Lopes
fc86edab7d
fix typo in tmp file path
2007-08-11 15:38:34 +00:00
Ulf Wendel
a166bd39ac
I forgot those files when merging mysqlnd SVN and HEAD. Only required by
...
tests that test experimental features and are skipped by default that's why
I missed them.
2007-08-09 10:16:24 +00:00
Ulf Wendel
af91a4056a
No need for an extra skip*.inc file, this check is done in just one place
2007-08-09 10:10:46 +00:00
Ulf Wendel
5846d6b84b
More changes related to MYSQL_TEST_SKIP_CONNECT_FAILURE.
2007-08-09 10:01:20 +00:00
Ulf Wendel
112b742518
New tests (stubs?) for a few experimental (to be removed?) functions.
...
The tests will only be run if you set MYSQL_TEST_EXPERIMENTAL = 1.
2007-08-09 09:59:15 +00:00
Ulf Wendel
974935e6b8
Next set of files which now feature the new environment variable
...
MYSQL_TEST_SKIP_CONNECT_FAILURE which controls how connection problems
are handled: failure (MYSQL_TEST_SKIP_CONNECT_FAILURE = false, default)
or skip (MYSQL_TEST_SKIP_CONNECT_FAILURE = true)
Also, some minor tweaking of connection parameters in the tests.
2007-08-09 09:43:28 +00:00
Ulf Wendel
1855a57471
Introducing new environment variable:
...
MYSQL_TEST_SKIP_CONNECT_FAILURE = false
Every test that needs a working MySQL connection now includes
skipifconnectfailure.inc. If MYSQL_TEST_SKIP_CONNECT_FAILURE evaluates
to true skipifconnectfailure.inc tries to establish a database
connection. If no connection can be opened, the test will be skipped.
In case of MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) an no
connection, a test who cannot establish a connection will fail.
So, if you have a buggy configuration or a server that is sometimes
not available, you can now decide if you want the tests to ignore this
and skip the test or to fail (MYSQL_TEST_CONNECT_FAILURE = false, default).
Other, minor tweaks:
042.phpt - whitespace
067.phpt - parse error in SKIPIF section fixed
2007-08-09 08:41:12 +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
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
7bb46902f8
Alignment fixes for 64bit and fixing macroses
2007-07-25 12:42:00 +00:00
Antony Dovgal
f0cde2c03d
namespace protection
...
GD uses the same variable, too.
2007-07-24 20:11:13 +00:00
Andrey Hristov
bb4b052c23
Don't use AC_CHECK_TYPES, as autoconf 2.13 is buggy, use an workaround.
2007-07-24 19:20:28 +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
Andrey Hristov
cbba608856
MFB
2007-07-24 09:32:11 +00:00
Ulf Wendel
9b035b58f5
Damn, Pierre is clever.
...
[14:35] <_jani_> nixnutz_: why don't you just commit everything in one go..?
[14:35] <_jani_> this "spamming" is getting quite boring..
[14:36] <Pierre> 20â¬/commit :)
2007-07-23 12:38:41 +00:00
Ulf Wendel
512f62a5a9
Tests for mysqli_stmt_send_long_data()
2007-07-23 12:36:06 +00:00
Ulf Wendel
613947afc6
Tests which verify that you really cannot clone any of the mysqli
...
objects. Technically it might be possible to tweak ext/mysqli and make
the objects cloneable - tough, we haven't checked in depth.
So, if one is interested, raise a discussion.
2007-07-23 12:34:09 +00:00
Ulf Wendel
fe8c5d1243
Tests that check mysqli_fetch_field(), mysqli_fetch_field_direct() and
...
retrieve metadata
2007-07-23 12:28:56 +00:00
Ulf Wendel
a1c14bfffd
Tests for mysqli_fetch_object()
2007-07-23 12:28:12 +00:00
Ulf Wendel
16008bc577
Another nice new function that comes with mysqlnd: return all rows of
...
a result set in one array. This is handy if want to fetch all results and
pass the data directly to a template engine, for example. In this case
you save a loop.
1) Currently:
$all_rows = array();
while ($row = mysqli_fetch_assoc($res))
$all_rows[] = $row;
2) With mysqli_fetch_all:
$all_rows = mysqli_fetch_all($res, MYSQL_ASSOC)
Note: if you need the loop for processing each row, try variant 1) for
performance reasons.
2007-07-23 12:27:39 +00:00
Ulf Wendel
ff87d3ec5b
Adding tests for a few new functions that come with mysqlnd:
...
mysqli_stmt_get_result() - create mysqli_result set from stmt
mysqli_get_cache_stats() - mysqlnd internal status/stats
mysqli_get_client_stats() - mysqlnd internal status/stats/
2007-07-23 12:24:02 +00:00
Ulf Wendel
8e85715547
Playing with background processing: parent and child process fetching data
...
from the "same" result handle and checking with each other if the fetched
rows are the same or not. Inspired by a bug report. There seem to be really
people doing this...
2007-07-23 12:20:25 +00:00
Ulf Wendel
8d61b27811
Tests for mysqli_fetch_assoc(), mysqli_fetch_array(), mysqli_fetch_row()
2007-07-23 12:16:55 +00:00
Ulf Wendel
7432e6f873
Tests for mysqli_connect(), mysqli_real_connect(), mysqli_connect_errno(),
...
mysqli_connect_error()
2007-07-23 12:15:20 +00:00
Ulf Wendel
c41dc41f64
Tests that deal with mysqli_set_local_infile_handler() and mysqli_set_local_infile_default()
2007-07-23 12:13:15 +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
Ulf Wendel
1884a16d01
Primarily whitespace/CS - synching with mysqlnd SVN repository
2007-07-23 12:04:19 +00:00
Ulf Wendel
a4cd950dc8
The last bunch of changes to the old 0*.phpt tests. Once final time a
...
verbose explanation of changes:
- take connection parameter from connect.inc
- use proper UEXPECTF
- have 'print "done!"' or similar at the end to detect crashes
- whitespace changes where needed
- take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0
- understand return value checking as sometime that makes you type
more when you write but makes you happy when you debug
2007-07-12 21:02:21 +00:00
Ulf Wendel
b6cc61737f
Will this never end?
...
- connection parameter tweaking
- a bit of whitespace here and there
- use UEXPECTF if need be
2007-07-12 20:57:30 +00:00
Ulf Wendel
2a191bb06d
As usual:
...
- connection parameter tweaking
- a bit of whitespace here and there
- use UEXPECTF if need be
2007-07-12 20:55:12 +00:00
Ulf Wendel
b0251ed6cc
Connection parameter should be taken from connect.inc and used all in
...
mysqli_connect() and friends. Use UEXPECTF instead of crippled EXPECTF.
2007-07-12 20:53:05 +00:00
Ulf Wendel
1cef1c528d
I forgot to mention: some will fail. In particular in unicode mode.
...
Next 10 in row to be tweaked:
- take connection parameter from connect.inc
- use proper UEXPECTF
- have 'print "done!"' or similar at the end to detect crashes
- whitespace changes where needed
- take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0
- understand return value checking as sometime that makes you type
more when you write but makes you happy when you debug
2007-07-12 20:49:29 +00:00
Ulf Wendel
202ba6c5fe
Next 10 in row to be tweaked:
...
- take connection parameter from connect.inc
- use proper UEXPECTF
- have 'print "done!"' or similar at the end to detect crashes
- whitespace changes where needed
- take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0
- understand return value checking as sometime that makes you type
more when you write but makes you happy when you debug
2007-07-12 20:42:48 +00:00
Ulf Wendel
472e0c78d1
The usual tweaking:
...
- take connection parameter from connect.inc
- use proper UEXPECTF
- have 'print "done!"' or similar at the end to detect crashes
- whitespace changes where needed
- take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0
2007-07-12 20:38:26 +00:00
Ulf Wendel
5ccab692dd
Pretty much the same cosmetics and tweaking as before (proper UEXPECTF,
...
"done!" at the end to detect crashes, connection parameter tweaking, ...) -
plus: check return codes even if failures are unlikely.
2007-07-12 20:34:50 +00:00
Ulf Wendel
1d0b5d303b
More typical changes:
...
1) Try to have portable SQL, don't create your own schema unless the test
wants to test exactly this
2) Don't rely on default SQL sort orders
3) Use proper UEXPECTF. There have been a lot of tiny unicode issues when
ext/mysqli has returned a binary string in unicode mode although a
unicode string could be expected and vice versa
2007-07-12 20:31:18 +00:00
Ulf Wendel
984756c898
All the upcoming changes in the 0*.phpt files are pretty much the same. I'll
...
describe them only once in with a bit of detail.
1) Correct Whitespace (space vs. tab) if need be
2) Recall: you get the connection parameter from connect.inc, no DB name, no
port no other connection parameter in any of the tests!
3) At the end of each test you find a "print 'done!'" or similar. This is
most helpful to detect crashing/segfaulting tests with all run-tests.php
versions.
2007-07-12 20:28:25 +00:00
Ulf Wendel
ed4021d857
Adding tests for mysqli_affected_rows() and mysqli_autocommit()
2007-07-12 20:20:57 +00:00
Ulf Wendel
b5595d57c5
Some of the upcoming new tests will use this little helper to create a
...
very simple MySQL table with some data in it to play with.
2007-07-12 20:10:23 +00:00
Ulf Wendel
e48a29bb4d
Some tests intentionally fail connecting to the DB. Not being able to
...
connect is no reason to skip the test. Also, no test should have hard-wired
connection parameter in it. Connection parameters come from connect.inc
(see environment variables in connect.inc).
2007-07-12 20:07:05 +00:00
Ulf Wendel
6fff9f4534
Starting to merge the latest set of ext/mysqli tests from the mysqlnd
...
SVN repro into HEAD. Again, it might happen that I crash the set of tests
and don't mention one or the other change while merging. Blame me...
1) Note the new environment variables to control the test run
2) Variables $IS_MYSQLND and $MYSQLND_VERSION are for writing portable tests
3) sys_get_temp_dir function is for PHP5/PHP6 portability
2007-07-12 20:04:17 +00:00
foobar
f0f44a3652
- Fix some configure --help texts
2007-07-03 17:24:39 +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
Stanislav Malyshev
7d0ad106b4
Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedir
...
is active
2007-06-18 21:59:05 +00:00
Antony Dovgal
814629c7d6
fix tests
2007-05-18 11:47:31 +00:00
Antony Dovgal
ccd97f3a21
fix test names
2007-05-07 17:23:53 +00:00
Antony Dovgal
8d9be0338b
fix test names
2007-05-07 16:50:40 +00:00
Antony Dovgal
855446cd42
revert
2007-04-23 09:26:58 +00:00
Andrey Hristov
5af007daea
The right place to edit
2007-04-19 09:50:10 +00:00
Antony Dovgal
3dd8663cb7
use default socket (removed by mistake?)
2007-04-14 10:42:41 +00:00
Antony Dovgal
f3c528516b
set MYSQL_OPT_RECONNECT (see bug #41083 )
2007-04-14 10:35:00 +00:00
foobar
825ed60f90
- Fixed test to skip when mysqld is not running
2007-03-25 01:15:41 +00:00
Antony Dovgal
fab8c8549d
fix typo and bug #40898
2007-03-23 08:21:08 +00:00
Marcus Boerger
cd7a656a9b
- Optional dependency for SPL must be specified in header
2007-03-20 20:00:07 +00:00
Martin Kraemer
e46b1b3747
Typo
2007-03-14 09:49:58 +00:00
Stanislav Malyshev
b9fd0c848a
add testcase
2007-03-09 18:37:32 +00:00
Stanislav Malyshev
031991d7a7
MFB: fix crash/leak in bug #38710
2007-03-08 22:57:02 +00:00
Marcus Boerger
20a40063c5
- avoid sprintf
2007-02-24 16:25:58 +00:00
Stanislav Malyshev
d78f8b05a0
use error message size
2007-02-16 18:49:06 +00:00
Andrey Hristov
f483a60f3a
add a sticky note
2007-01-12 20:26:35 +00:00
Georg Richter
a8d9958f70
merged from 5_2 (mysqli_info crash)
2007-01-06 05:50:36 +00:00
Georg Richter
f9fe766355
fixed parameters for unicode in mysqli_change_user
2007-01-02 05:49:05 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Andrey Hristov
20fc9486db
dummy change
2006-12-04 15:27:18 +00:00
Georg Richter
1763eaec25
Fixed function headers (added missing U)
...
fixed socket parameter (was removed by mistake in a previous commit)
2006-10-31 15:23:16 +00:00
Georg Richter
dd5f975cc9
Fix for bug #39085 :
...
PHP6 requires mysqli_set_character_set function which was introduced in
MySQL 4.1.13 and 5.0.7
2006-10-09 04:46:03 +00:00
Hannes Magnusson
176b72284c
Error message clean up
...
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Ilia Alshanetsky
ae21a1ab79
Another build fix
2006-10-07 18:24:51 +00:00
Antony Dovgal
255b215c9e
don't rely on uninitialized var
2006-10-02 16:08:11 +00:00
Hannes Magnusson
36ae8183b4
Fix protos
2006-10-02 07:42:49 +00:00
Hannes Magnusson
86ac2900f0
Fix proto
2006-10-02 07:35:09 +00:00
Georg Richter
c7a97a7482
unicode fixes
2006-10-01 21:01:31 +00:00
Georg Richter
d8b4ae50ca
Fixed error message (thanks to Ulf Wendel)
2006-09-29 08:35:19 +00:00
Georg Richter
0dc8637ed4
ZTS fixes. Implemented Andrei's hints (simplifying unicode stuff)
2006-09-27 15:25:52 +00:00
Georg Richter
1432e7b40f
added unicode support for mysqli extension
2006-09-26 13:06:13 +00:00
Ilia Alshanetsky
b663e04049
MFB: Fixed test for systems without INFILE/OUTFILE support
2006-09-13 15:53:12 +00:00
Antony Dovgal
3cf1565d90
typos in comments and other minor improvements
2006-08-10 13:44:00 +00:00
Ilia Alshanetsky
64710ee331
MFB: Improved fix for bug #37671
2006-08-04 22:14:10 +00:00
Antony Dovgal
484698f6fe
fix leak in php_local_infile_init() handler
2006-07-27 10:53:03 +00:00
Ilia Alshanetsky
3cf509ab75
MFB: Added possible failure note.
2006-07-18 00:09:21 +00:00
Ilia Alshanetsky
3c75c080cf
MFB: Fixed test for systems where set_charset() method is unavailable.
2006-07-13 15:42:55 +00:00
Antony Dovgal
3945c5e1c6
MFB: fix #38072 (boolean arg for mysqli_autocommit() is always true on Solaris)
2006-07-12 10:15:30 +00:00
Hartmut Holzgraefe
4fb0776b8e
new test cases for mysqli_warnings and mysql_driver properties
2006-07-12 08:00:24 +00:00
Hartmut Holzgraefe
397a46b559
fixed C&P errors in groups handling, activated groups feature
2006-07-12 07:00:48 +00:00
Hartmut Holzgraefe
eef7cb2d75
make sure embedded server is correctly initialized
2006-07-11 23:41:40 +00:00
Hartmut Holzgraefe
45a238c129
skip when testing embedded server
2006-07-11 23:37:41 +00:00
Hartmut Holzgraefe
0bbeae457b
no need to test ping and kill with embedded server
2006-07-11 23:34:27 +00:00
Hartmut Holzgraefe
ecb58ee2cd
check both OO and procedural style as "thread_id" is a property and not
...
a method in the OO interface
2006-07-11 07:21:27 +00:00
Hartmut Holzgraefe
0bf1cbe8d0
modified test to use (and cover) mysqli->thread_id
2006-07-11 07:10:18 +00:00
Hartmut Holzgraefe
250f4efe6b
test kill()
2006-07-11 07:04:44 +00:00
Hartmut Holzgraefe
1c39435499
test ping()
2006-07-11 07:04:31 +00:00
Hartmut Holzgraefe
b259f66300
test multi_query(), next_result(), more_results()
...
(only partially covered by a bug testcase yet)
2006-07-11 07:04:16 +00:00
Hartmut Holzgraefe
587c37a036
get_client_info() test
2006-07-11 07:03:31 +00:00
Hartmut Holzgraefe
bf71e83fbf
test was only covering fetch_fields(), added fetch_field() and fetch_field_direct()
2006-07-11 07:02:50 +00:00
Hartmut Holzgraefe
9301bc929d
test was not covering DOUBLE bindings
2006-07-11 07:02:02 +00:00
Michael Wallner
3c0a4a8b07
- revert messed up patch
2006-07-10 13:16:07 +00:00
Michael Wallner
9539a8b980
- fix 5.2 build
2006-07-10 13:08:11 +00:00
Antony Dovgal
70a7d0319b
fix mysqli_*_free_storage() funcs to conform with their prototypes
2006-07-10 13:02:31 +00:00
Dmitry Stogov
0644e2e386
Another fix for #38019
2006-07-10 12:46:46 +00:00
Dmitry Stogov
1236514b0b
Fixed bug #38019 (segfault extending mysqli class)
2006-07-10 10:05:35 +00:00
Antony Dovgal
1e5849ca94
add test
2006-07-05 14:12:41 +00:00
Antony Dovgal
6345105612
fix bug #38003(in classes inherited from mysqli it's possible to call private constructors from invalid context)
...
also, use appropriate macro instead of accessing structure elements directly
2006-07-05 11:48:17 +00:00
Dmitry Stogov
943960c324
Added automatic module globals management
2006-06-13 13:12:20 +00:00
Ilia Alshanetsky
b36fde4b9e
MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
2006-06-04 14:57:06 +00:00
Michael Wallner
1ba7a6812c
MFB: #37630 MySQL extensions should link against thread safe client libs if built with ZTS
2006-06-01 19:15:31 +00:00
Michael Wallner
5777060367
MFB: Fixed bug #36949 (invalid internal mysqli objects dtor)
2006-05-29 16:55:40 +00:00
Andrey Hristov
e4e7d27e4a
MFB
2006-05-10 12:29:09 +00:00
Georg Richter
4508ae73f7
merge from 5.2
2006-05-09 13:53:39 +00:00
Georg Richter
b6d7fdf465
Merge from 5.2
2006-05-09 11:27:20 +00:00
Antony Dovgal
8c63a3bce7
MF51: fix tests
2006-03-30 20:43:55 +00:00
Antony Dovgal
cb2232e808
MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
2006-03-30 11:23:11 +00:00
Antony Dovgal
87f6b66a62
fix typo
2006-03-29 16:30:54 +00:00
Antony Dovgal
6a53a49c8b
MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
Ilia Alshanetsky
7f18e7f62c
MFB51: Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection).
2006-03-21 15:35:48 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Marcus Boerger
20273c4fe9
- Fix build
2006-03-05 17:31:44 +00:00
Johannes Schlüter
50e52dcc3e
- Fix build after unicode changes
2006-03-05 15:49:55 +00:00
Ilia Alshanetsky
c20dbeb121
MFB51: Remove no longer needed check (checked at a higher level now).
2006-03-01 18:37:25 +00:00
Antony Dovgal
29d3ee55d5
fix #36420 (segfault when access result->num_rows after calling result->close())
2006-02-16 16:08:52 +00:00
Ilia Alshanetsky
2b24ddb6a3
MFB51: Fixed bug #36420 (segfault when access result->num_rows after calling
...
result->close())
2006-02-16 16:05:02 +00:00
Andrey Hristov
94dffc55ac
bring tests up-to-date with 5_1 branch
...
#few are failing and will stop failing when bugfixes are upmerged from 5_1
2006-01-04 23:04:06 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Zeev Suraski
9f0868506e
Whitespace
2005-12-26 09:30:40 +00:00
Stefan Esser
5790c9d727
MFB: format string fixes
2005-12-23 18:43:03 +00:00
Zeev Suraski
84a2475b16
Fix prototype (MFB)
2005-12-22 14:56:29 +00:00
foobar
c0c7b984f0
nuke php3 legacy
2005-12-06 01:39:35 +00:00
foobar
fc816c5e76
MFB51: Always use $SED instead of sed
2005-11-29 21:31:35 +00:00
Dmitry Stogov
8bb39e7dba
Allow recursive calls to __get/__set for different properties
2005-11-15 15:21:47 +00:00
Antony Dovgal
096cb8c2de
use php_error_docref() instead of php_error() everywhere
2005-10-18 13:51:20 +00:00
Antony Dovgal
5561b8a9ab
fix bug #34902 (mysqli::character_set_name() - undefined method)
2005-10-18 10:01:08 +00:00
Ilia Alshanetsky
1c8c3c063b
Fixed test failure
2005-10-13 21:26:08 +00:00
Antony Dovgal
dd14ae2327
MF51: fix TS build
2005-10-12 13:33:33 +00:00
Antony Dovgal
20b8eb26fe
MF51: use proper macros and vars instead of strlen()
2005-10-10 20:16:35 +00:00
Antony Dovgal
870a19056f
MF51: fix #34818
2005-10-10 20:14:31 +00:00
Antony Dovgal
5ec88f863e
MF51: fix #34810 (mysqli::init() and others use wrong $this pointer without checks)
2005-10-10 12:59:47 +00:00
Andrey Hristov
1483b322f4
MFB
2005-10-09 17:57:37 +00:00
Antony Dovgal
47ed27c6bb
fix #32081 (mysqli_real_connect(): mysqli.default_socket in php.ini has no effect) for real
2005-09-22 20:14:15 +00:00
Antony Dovgal
d94f338cf4
fix #34450 (Segfault when calling mysqli_close() in destructor)
2005-09-13 09:19:58 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
Sebastian Bergmann
52b001cc05
ZTS fixes.
2005-08-12 14:08:28 +00:00
Andrey Hristov
f25c366a73
add a comment
2005-08-06 16:56:42 +00:00
Andrey Hristov
313ff9998e
add error checking
2005-08-06 16:38:48 +00:00
Andrey Hristov
dcc18b6d6f
fix problem on 64 bit - when asking for "l" supply long not int because
...
on 64 bit they differ and zend_parse_parameters makes a *(long*) cast
which means that if the variable is int 4 bytes of the variable(s)
declared before it (on the stack) will be overwritten. In this case
this is the length of the query -> made 0 and mysqli_query() returns
FALSE.
2005-08-06 16:15:53 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
40a049b27e
Skip tests in 64bit systems
2005-07-20 00:18:24 +00:00
Antony Dovgal
502b00c3f6
add forgotten ifdefs, fix #33667 (mysqli doesn't compile)
2005-07-12 20:38:34 +00:00
Georg Richter
9aabcf7016
changed version dependency for charset functions
2005-07-12 15:45:07 +00:00
Georg Richter
9caaee66bd
removed charset structure. libmysql now provides a function
...
mysqli_get_character_set_info (Vers. 5.0.10)
2005-07-12 09:35:16 +00:00
foobar
a7e85b3c07
Make sure we get a WARNING and not an ERROR here :)
2005-07-08 08:53:25 +00:00
foobar
b35224fa81
add test case
2005-06-27 19:07:52 +00:00
Antony Dovgal
b16beb540c
fix #33491 (crash after extending MySQLi internal class)
2005-06-27 17:40:37 +00:00
Antony Dovgal
689f3488a5
fix couple of leaks in MySQLi
2005-06-27 17:33:56 +00:00
foobar
8eb44394cb
set_charset() is only available in mysql versions > 4.1.12
2005-06-27 10:34:42 +00:00
foobar
0b35120921
do not pollute other directories and cleanup after test
2005-06-27 10:14:11 +00:00
Georg Richter
01108f7879
fix for #33474
2005-06-26 04:44:03 +00:00
Georg Richter
224b12ba8b
reverted Ilias changes - added get_warnings methods
...
(forgot to commit the file in my last commit)
2005-06-24 14:44:45 +00:00
Ilia Alshanetsky
50d32d4d7e
temporary fix to let mysqli extension build, so we can make a release.
2005-06-23 02:15:04 +00:00
Ilia Alshanetsky
00f14fbd74
Slightly more reliable current path detection.
2005-06-22 13:41:59 +00:00
Ilia Alshanetsky
46b276ee4b
Skip MySQLi tests if connection could not be established and not using
...
embeded db.
2005-06-22 13:41:43 +00:00
Georg Richter
ce972676b5
added testcase for mysqli_warning class
2005-06-22 10:15:37 +00:00
Georg Richter
976be82fb9
added testcase for cursors (nested selects)
2005-06-22 10:14:32 +00:00
Georg Richter
6fba73e8e2
changed/fixed mysqli_warning class
...
added prefetch support for cursors
2005-06-22 09:12:43 +00:00
Georg Richter
15563f8d91
fix for bug #33263 (mysqli_real_escape doesn't work in __construct)
2005-06-17 16:32:43 +00:00
foobar
bf94716838
- Allow doing --with-mysql --with-mysqli (no mysql libs are bundled atm)
...
- Make sure MYSQL_DIR is empty.
2005-06-07 12:39:02 +00:00
Wez Furlong
e9d474dc01
fixes for #33251
2005-06-05 19:25:01 +00:00
Georg Richter
d486da963e
added new function mysqli_get_charset
2005-06-03 08:49:01 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
Georg Richter
230681b0b3
enabled set_charset for MySQL Versions >= 5.0.6
...
added testcase for bug #33090
2005-05-21 08:46:46 +00:00
Georg Richter
3e416f738c
fix for bug #33090 (mysql_prepare doesn't return error)
2005-05-21 08:38:53 +00:00
Georg Richter
d72cd1d130
charsets_dir is no longer needed
2005-05-13 13:56:04 +00:00
Georg Richter
d8f91dc44c
mysql_set_charset now works version undependent for MySQL 4.1.13 and above
2005-05-13 13:30:22 +00:00
Georg Richter
49e1484da8
- fixed compile error under windows. Functionality for changing the
...
character set was moved to libmysql (4.1 bk tree - will be merged into
5.0 within the next days).
- renamed mysql_set_character_set to mysqli_set_charset
2005-05-13 13:11:41 +00:00
Andrey Hristov
8e97019a69
after throwing an warning bail out
2005-05-09 22:29:54 +00:00
Andrey Hristov
b4464a2d6a
mysqli won't compile with Zend2 API before 2001 - in these days there was
...
no Zend2
2005-05-09 22:29:21 +00:00
Andrey Hristov
d5e0b8a628
MFB
2005-05-09 21:48:03 +00:00
foobar
8d00609794
- We skip tests when the extension is not loaded..in the php.ini
2005-05-09 21:16:49 +00:00
foobar
db1a5ab243
revert pointless patch
2005-05-09 21:16:06 +00:00
Andrey Hristov
02d0f72596
also test shared builds
2005-05-09 16:23:22 +00:00
Georg Richter
b654b20ef6
Added new function mysqli_set_character_set_name
2005-05-08 08:39:56 +00:00
Andrey Hristov
daae299653
revert this one till we have a better way to inform the user where the
...
truncation has occured
2005-05-07 12:46:29 +00:00
Andrey Hristov
91b3b49f14
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
...
#the manual has to be updated
2005-05-07 08:23:39 +00:00
Andrey Hristov
70da059cc0
return directly
2005-05-07 08:03:35 +00:00
Andrey Hristov
b7df40a75a
bail out when detecting incorrect number of parameters to be bound.
2005-05-07 07:44:41 +00:00
Andrey Hristov
60c0c8e95c
initialize values because the call to zend_parse_parameters may not do it
2005-05-06 10:09:42 +00:00
Georg Richter
929e3851f2
fixed memleak in mysqli_close
...
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
2005-05-05 13:02:32 +00:00
Andrey Hristov
e640960186
multi_query is no more global
...
#thanks Sebastian!
2005-04-29 10:23:55 +00:00
Ilia Alshanetsky
8abc1d3b9c
e* allocation cannot fail.
2005-04-28 23:49:04 +00:00
Andrey Hristov
3b3ce2b610
fix bug #32013(MySQLi bind_result causes fatal error: memory limit reached)
...
#this is a partial fix but it cannot be better. the user has to call
#$stmt->store_result() and for a BLOB/MEDIUTEXT (and larger) space will be
#allocated as big as the biggest column value.
2005-04-27 17:53:15 +00:00
Andrey Hristov
f6b12b351e
MFB (fixing bug 31668)
2005-04-27 12:12:58 +00:00
Georg Richter
2bcae57b31
another fix for last commit (committed from wrong tree) :(
2005-04-20 13:24:08 +00:00
Georg Richter
9c1960c398
fixed typo in last commit :(
2005-04-20 13:03:01 +00:00
Georg Richter
649a8b18ef
added support for data truncation (bind_result) for MySQL 5.0.5
2005-04-20 12:50:13 +00:00
Andrey Hristov
2652762dcd
MFB
2005-04-19 15:45:07 +00:00
Andrey Hristov
eef94ff4bb
add a test case for Bug #32405 (the previous commit incorporated a fix
...
for it).
2005-04-19 13:29:37 +00:00
Andrey Hristov
2a3c71b833
- nail down another 64bit problem. this will fix about 14 failing tests
...
on amd64 (probably other 64 bit arch).
- use ulong for this boolean variable, as it was before
- throw an warning if offset passed to mysqli_stmt_data_seek is negative
2005-04-19 13:28:41 +00:00
Andrey Hristov
155b90db20
- fixing all "long" into "int" fetching problems (cause memory corruption
...
on 64 bit)
- nail down a problem because of the new MYSQL_TYPE_NEWDECIMAL introduced
in MySQL 5.0+
- Add more info to the autocommit test
2005-04-19 12:59:16 +00:00
Georg Richter
21cae3966c
cursor support for 5.0.4 (STMT_ATTR_CURSOR_TYPE changed to enum)
2005-04-18 06:03:29 +00:00
Georg Richter
f6ecb58448
fix for bug #32282 (segfault in mysqli_fetch_array on 64-bit)
2005-04-06 06:47:12 +00:00
Joe Orton
6974b5ecce
Mark more private functions as static.
2005-03-30 13:43:36 +00:00
Joe Orton
5aa95520cd
Mark private functions as static.
2005-03-30 12:56:58 +00:00
Antony Dovgal
646bb71503
fix typo in error message
2005-03-17 18:12:06 +00:00
Marcus Boerger
5830e46a84
- Bugfix #28840 __destruct of a class that extends mysqli not called
2005-03-06 21:40:01 +00:00
Georg Richter
2e2bfb83c4
fix for bug #31939
2005-02-25 08:43:41 +00:00
Ilia Alshanetsky
a3085602d0
Fixed bug #32081 (default socket value is not being used).
2005-02-24 23:58:59 +00:00
Georg Richter
ef6f0f00a6
fix for bug #29329
2005-02-05 10:59:38 +00:00
Georg Richter
32aaa6a7be
fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows
...
in case affected_rows function returns (my_ulonglong) -1 for errors.
(Thanks to Antony Dovgal for reporting this bug)
2005-01-28 17:35:37 +00:00
Antony Dovgal
6ffd569410
MFB: fix leak in mysqli_fetch_array()
2005-01-27 14:41:48 +00:00
Georg Richter
7148919940
fix for bug #31710 (return value for mysql_rollback is reverted)
...
fixed also same behaviour for mysql_commit and mysql_autocommit
2005-01-27 10:18:28 +00:00
Antony Dovgal
9d9e4379af
MFB: fix segfault when invalid field offset is passed to mysqli_fetch_field_direct()
2005-01-27 01:14:43 +00:00
Zak Greant
f3d39ff406
Added standard emacs and vim modelines
2005-01-16 19:28:55 +00:00
Georg Richter
6b49e2d9e7
fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
...
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Marcus Boerger
01d6db92fc
- Fix shared build
2005-01-08 13:36:17 +00:00
Marcus Boerger
8045f834d4
- Remove double destroy (which is definitively wrong and prevents php from
...
normal execution).
2005-01-08 13:34:03 +00:00
Georg Richter
f16db40af2
forgot to remove some comments in last commit:(
2005-01-07 16:34:55 +00:00
Sebastian Bergmann
683515596b
ZTS fix.
2005-01-07 16:24:51 +00:00
Sebastian Bergmann
aca657eca2
Sync with config.m4.
2005-01-07 16:23:13 +00:00
Georg Richter
0b4c108bd7
Added new classes:
...
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
2005-01-07 14:59:59 +00:00
Georg Richter
57fa54af2d
added property 'id' to retrieve statement id (required by PEAR DB, to support
...
mysqli prepared statements)
2004-12-29 11:46:13 +00:00
Georg Richter
dc63cb7feb
fixed testcase 047
...
fixed windows compile error
2004-12-27 15:39:35 +00:00
Georg Richter
698c0361d6
Fix for feature request #31015 : added length for field length
2004-12-27 11:48:57 +00:00
Georg Richter
683f6c879c
added constructors for mysqli_stmt and mysqli_result classes
2004-12-26 13:16:40 +00:00
Georg Richter
ea22bf6063
fix for bug 31141
2004-12-25 16:42:53 +00:00
Georg Richter
5c50f0bb30
prevent type conversion during mysql_stmt_execute for NULL variables
2004-12-20 16:39:14 +00:00
Antony Dovgal
01f31dcccb
fix buffer overrun and remove debug printf() call
2004-12-09 08:22:06 +00:00
Georg Richter
f0f08ec32b
fixed windows compile errors (Thx to Sebastian Bergmann)
2004-12-06 05:15:03 +00:00
Georg Richter
6d27573ec2
added skipif section
2004-12-04 08:50:33 +00:00
Georg Richter
9751d9afaa
Fixed bug #30890 (testsuite)
...
Fixed bug #28817 (property problems in extended class)
2004-12-04 08:16:04 +00:00
Georg Richter
30dd61abb7
Fixed bug #30967 (properties in extended mysqli classes don't work)
2004-12-03 07:56:19 +00:00
Edin Kadribasic
d2b5b62af5
MySQL is releasing client libraries that compile out of the box
...
with mysqli extension, so there is no need for a specially compiled
client library anymore.
2004-11-04 02:41:40 +00:00
Georg Richter
b557bdb665
added multi resultset support in mysql_connect
2004-11-01 09:53:16 +00:00
Georg Richter
b8863135a2
Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058 )
...
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:19:26 +00:00
Georg Richter
f4f84ac9ab
Minor fix for mysqli_connect: checking socket_len for NULL Values
...
(Thx to Paul DuBois)
2004-10-19 05:14:09 +00:00
Georg Richter
eb3900b77a
forgot to remove comment in last commit
2004-09-04 14:16:52 +00:00
Georg Richter
62ed6a0f2b
fixed bug #29283
2004-09-02 04:53:01 +00:00
Georg Richter
616d49aaf6
test for local_infile_handler
2004-08-25 13:58:03 +00:00
Georg Richter
c8572b0bba
changed local_infile_handler:
...
mysql client lib now uses php_local_infile functions by default, which allows
to use php_fopen_wrapper: e.g. LOAD DATA LOCAL INFILE 'http://foo.com/bar.csv ' ...
mysql_set_local_infile_handler now only supports a callback function for read.
2004-08-25 13:57:35 +00:00
Georg Richter
1c6f49006b
fixed default for mysqli_fetch_array
2004-08-15 05:48:16 +00:00
Georg Richter
1593aa0e5e
fixed bug #29656 (segfault on result and statement properties)
2004-08-13 16:25:29 +00:00
Georg Richter
8ff9528138
minor fix in mysqli_prepare: copying stmt errormessag to mysql structure
2004-08-12 22:14:06 +00:00