Antony Dovgal
a06d3b7bf3
revert
2007-04-23 09:27:07 +00:00
Andrey Hristov
73da9ea31d
Hmm, the right place to edit
2007-04-19 09:49:28 +00:00
Antony Dovgal
85fe8e9663
MFH
2007-04-14 10:35:05 +00:00
foobar
82023f9aac
- Fixed test to skip when mysqld is not running
2007-03-25 01:14:51 +00:00
Marcus Boerger
6081c2284e
- MFH Optional dependency for SPL must be specified in header
2007-03-20 20:00:27 +00:00
Martin Kraemer
9c62ddde34
Typo
2007-03-14 09:58:14 +00:00
Stanislav Malyshev
1e9fd0f002
add testcase
2007-03-09 18:37:03 +00:00
Stanislav Malyshev
6e460bab4e
fix crash/leak in bug #38710
2007-03-08 22:49:53 +00:00
Marcus Boerger
d2c343a3df
- Fix spprintf usage
2007-02-24 14:33:50 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Stanislav Malyshev
8edc9018db
use error message size
2007-02-16 18:48:53 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Hannes Magnusson
0028eccadd
Fix tests
2006-12-12 08:09:40 +00:00
Antony Dovgal
b5b8fa4f6b
fix test
2006-11-13 12:47:43 +00:00
Hannes Magnusson
3611a3de4a
Fix protos
2006-10-02 07:44:34 +00:00
Hannes Magnusson
6a4dca06e6
Fix proto
2006-10-02 07:36:18 +00:00
Georg Richter
67d2992fdc
MFH: fixed error message
2006-09-29 08:40:10 +00:00
Ilia Alshanetsky
54032dee04
Fixed test for systems without INFILE/OUTFILE support
2006-09-13 15:52:57 +00:00
Antony Dovgal
1ec10ac8c7
typos in comments and other minor improvements
2006-08-10 13:43:18 +00:00
Ilia Alshanetsky
305f597696
Improved fix for bug #37671
2006-08-04 22:13:59 +00:00
Georg Richter
0ba0abbd40
Added testcase for bug #37090
2006-07-30 11:03:30 +00:00
Antony Dovgal
92f4cc359f
MFH: fix leak in php_local_infile_init() handler
2006-07-27 10:53:15 +00:00
Ilia Alshanetsky
fea4eeb845
Added possible failure note.
2006-07-18 00:09:01 +00:00
Ilia Alshanetsky
ab6d4d411a
Fixed test for systems where set_charset() method is unavailable.
2006-07-13 15:42:43 +00:00
Antony Dovgal
8a35e9d014
fix #38072 (boolean arg for mysqli_autocommit() is always true on Solaris)
2006-07-12 09:51:47 +00:00
Antony Dovgal
1f09c0b9d5
fix TSRM build
2006-07-12 09:33:37 +00:00
Hartmut Holzgraefe
3fe315c652
MFH new test cases
2006-07-12 08:01:44 +00:00
Hartmut Holzgraefe
e796974f6f
fixed C&P errors in groups handling, activated groups feature
2006-07-12 07:01:04 +00:00
Hartmut Holzgraefe
aca6460346
MFH
2006-07-11 23:45:28 +00:00
Hartmut Holzgraefe
ae749049f5
MFH make sure that embedded database is correctly initialized
2006-07-11 23:43:55 +00:00
Hartmut Holzgraefe
61e9783154
debug output was breaking all tests
2006-07-11 23:42:58 +00:00
Hartmut Holzgraefe
3e099a5983
MFH test for ping and kill methods
2006-07-11 23:35:38 +00:00
Antony Dovgal
d9d23050d1
MFH: fix mysqli_*_free_storage() funcs to conform with their prototypes
2006-07-10 13:02:43 +00:00
Dmitry Stogov
26c7981ccf
Another fix for #38019
2006-07-10 12:46:28 +00:00
Dmitry Stogov
690e86fdb2
Fixed bug #38019 (segfault extending mysqli class)
2006-07-10 10:05:20 +00:00
Antony Dovgal
d90263437c
add test for bug #38003
2006-07-05 13:31:17 +00:00
Antony Dovgal
0f8f945418
MFH: fix bug #38003(in classes inherited from mysqli it's possible to call private constructors from invalid context)
2006-07-05 11:48:30 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Ilia Alshanetsky
63a658ee7a
Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
2006-06-04 14:56:34 +00:00
Michael Wallner
6e2ff39e3e
- Fix bug #37630 : MySQL extensions should link against thread safe client libs if built with ZTS
2006-06-01 19:14:48 +00:00
Michael Wallner
3b407d143b
- Fixed bug #36949 (invalid internal mysqli objects dtor)
2006-05-29 16:53:56 +00:00
Georg Richter
10ed7a1e0a
Fix for bug #37620
2006-05-29 05:38:50 +00:00
Andrey Hristov
ac97b77ed9
Don't allocate 2 chunks of memory when one can fit. Reduces memory
...
fragmentation. There is one more place that fragments memory but it will
complicate the ongoing Unicode upgrade of mysqli so leaving it away for now.
2006-05-10 11:53:13 +00:00
Marcus Boerger
77c1b56cd7
- Update after api changes
2006-05-10 00:00:13 +00:00
Georg Richter
d2dd99ded5
removed unused macro parameter
2006-05-09 11:26:09 +00:00
Georg Richter
d94467f7e8
moved zend_class_entry variables to mysqli.c
2006-05-08 16:19:43 +00:00
Andrey Hristov
818d2b7aee
tweaks and optimizations
...
#tested on 32b and 64b
2006-05-08 15:06:51 +00:00
Georg Richter
0944a47107
fixed bigint conversion on windows platforms
2006-04-05 12:17:08 +00:00
Georg Richter
b97b088800
fixed stmt property container and required status for error properties
2006-04-03 05:48:50 +00:00
Georg Richter
f8e6ffee30
Added additional information for compiled header files.
2006-04-02 09:40:19 +00:00
Antony Dovgal
b6c9363f73
fix tests
2006-03-30 20:43:39 +00:00
Antony Dovgal
62ce6717ad
fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
2006-03-30 11:21:51 +00:00
Antony Dovgal
ad746130ad
fix typo
2006-03-29 16:29:53 +00:00
Antony Dovgal
59b8592c8c
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)
to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Andrey Hristov
0b02327267
kill the left unused variable
2006-03-26 21:10:13 +00:00
Andrey Hristov
dfd5b4fbf4
remove unnecessary memcpy, cast directly
2006-03-26 21:08:41 +00:00
Georg Richter
65d704cb7c
fix and testcase for bug #36745
2006-03-24 12:10:39 +00:00
Georg Richter
f8183e2e97
fixed minor problems (thx to tony)
2006-03-24 10:58:52 +00:00
Georg Richter
b3a437fcc4
Fix for bug #36802 (server crashes with invalid/not opened connections)
...
Added status to mysqli_resource:
MYSQLI_STATUS_UNKNOWN
MYSQLI_STATUS_CLEARED (for future use)
MYSQLI_STATUS_INITIALIZED (after mysqli_init and mysqli_stmt_init)
MYSQLI_STATUS_VALID (for valid objects)
removed valid flag
changed MYSQLI_FETCH_RESOURCE
added last parameter __check which specifies the status
2006-03-24 09:32:24 +00:00
Ilia Alshanetsky
d76e149f0e
Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection).
2006-03-21 15:35:28 +00:00
Georg Richter
829642a0b7
fixed a 64-bit problem reported by Pierre
2006-03-14 15:53:16 +00:00
Georg Richter
e13e2fe9ba
fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144 )
2006-03-11 11:16:03 +00:00
Ilia Alshanetsky
1aa1c535b5
Remove no longer needed check (checked at a higher level now).
2006-03-01 18:37:11 +00:00
Antony Dovgal
1e8aad5075
MFH: add checks and fix possible reincarnations of bug #36420
2006-02-16 20:58:59 +00:00
Ilia Alshanetsky
ce9dfedc69
Fixed bug #36420 (segfault when access result->num_rows after calling
...
result->close())
2006-02-16 16:03:27 +00:00
Georg Richter
04ac1f7fd1
2nd attempt: implementation of 36007
...
1st commit stopped with protocol error - never seen that before :-(
2006-01-14 14:15:41 +00:00
Andrey Hristov
3a75666285
WS
2006-01-01 16:55:01 +00:00
Andrey Hristov
d03aea048f
fetch more than one row at once
2006-01-01 16:52:05 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Georg Richter
a5acdfc5f2
Fix for bug #35517 :
...
added missing unsigned flag for result buffer
fixed returncode in mysql_stmt_fetch for data truncation
2005-12-29 09:49:19 +00:00
Zeev Suraski
7669169bd5
Whitespace fix (don't ask :)
2005-12-26 09:28:38 +00:00
Andrey Hristov
eea08af619
fix small memory leak which emerged two days ago
2005-12-23 22:22:42 +00:00
Stefan Esser
f7c77f0f33
Beware of format strings...
2005-12-23 18:23:43 +00:00
Andrey Hristov
1c0971f3ce
fix for bug# 35759
...
(mysqli_stmt_bind_result() makes huge allocation when column empty)
#this shows some leaks now, which has to be investigated but closes the
#bug report.
2005-12-22 18:11:39 +00:00
Zeev Suraski
a034972797
Fix prototype
2005-12-22 14:55:55 +00:00
foobar
06b36f7cea
MFH: nuke php3 legacy
2005-12-06 01:40:06 +00:00
Andrey Hristov
c23052d6d2
fix compile failure on Windows - Microsoft hasn't heard of long long :)
2005-12-01 14:12:56 +00:00
Andrey Hristov
4ec16344a9
add a test case
...
fix incorrect handling of unsigned bigint.
optimize handling of unsigned int
2005-11-30 16:20:25 +00:00
Andrey Hristov
a8c0463961
fix more leaks. handle better unknown type (4.1.x connected to 5.0.x
...
incompatibility)
2005-11-30 15:26:41 +00:00
Andrey Hristov
c230f7defb
fix a crash and a leak.
...
4.1.15 (client) -> 5.x (server) because of the incompatibility because of
decimal in the protocol binding may fail. Don't close the statement in
that case because subsequent ->execute() will crash or any other function
that will try to use already freed (and in debug mode thrashed) pointer.
#probably more problems exist because of the 4.1.x -> 5.x protocol
#incompatibility
2005-11-30 11:35:03 +00:00
foobar
37661c8b39
- Always use the right sed
2005-11-29 17:32:40 +00:00
Andrey Hristov
da9abd8b73
mysql 4.1.x gives strange result. the result in the test is generated with
...
5.0.16 (valid for 5.1.3).
2005-11-28 13:35:54 +00:00
Andrey Hristov
1d3f0d8891
fix test - unsigned it is casted to 0 in mysql sql_mode
2005-11-25 01:13:56 +00:00
Ilia Alshanetsky
13996df552
Fixed test
2005-11-22 01:57:02 +00:00
Dmitry Stogov
d3e0b57e1a
Allow recursive calls to __get/__set for different properties
2005-11-15 14:28:40 +00:00
Andrey Hristov
df2c11b731
test fetching of unsigned int(11)
2005-11-08 14:43:49 +00:00
Andrey Hristov
64e8f63978
fix test - putting signed into unsigned produces 0, if not in strict mode
...
(in strict mode this will fail)
2005-11-08 14:06:40 +00:00
Andrey Hristov
00a9f063f8
on 32bit platform if the column is UNSIGNED INT(11) and the value
...
is greater than 2^31-1 then convert to string. on 64bit this is of no
problem because there long inside zval is big enough to keep unsigned
int(11)
2005-11-08 13:50:50 +00:00
Antony Dovgal
62ca4594f8
MFH: use php_error_docref() instead of php_error() everywhere
2005-10-18 13:51:50 +00:00
Antony Dovgal
d8e5ee075f
MFH: fix bug #34902 (mysqli::character_set_name() - undefined method)
2005-10-18 10:02:36 +00:00
Georg Richter
b343aa9945
fixed an error in mysqli_fetch_fields (function returns NULL instead of array
...
when row_number > num_fields).
Thanks to Marc Deslisle and phpMyAdmin team for the report.
2005-10-15 06:32:26 +00:00
Ilia Alshanetsky
d18cdaf6dd
MFH: fix test failures
2005-10-13 21:26:45 +00:00
Antony Dovgal
2bc716c131
fix TS build
2005-10-12 13:31:46 +00:00
Antony Dovgal
062626d03e
use proper macros and vars instead of strlen()
2005-10-10 20:06:35 +00:00
Antony Dovgal
a5cea052e8
fix #34818 (new mysqli_stmt() and several others crash if the first parameter is not a valid mysqli_link)
2005-10-10 20:03:00 +00:00
Antony Dovgal
410e106aae
fix #34810 (mysqli::init() and others use wrong $this pointer without checks)
2005-10-10 12:57:55 +00:00
Andrey Hristov
24af08eb80
add charsetnr and length to the object returned. this is kind of bug
...
because fetch_fields() and fetch_field() return that info and
fetch_field_direct() does not
2005-10-09 17:03:01 +00:00
Georg Richter
7357ac0b96
fix for bug 34785:
...
added support for parent::__construct (mysqli_statement and mysqli_resultset)
fixed failed testcases when sql_mode is in effect
2005-10-08 15:08:07 +00:00
Antony Dovgal
0dce979bfc
MFH: fix #32081 (mysqli_real_connect(): mysqli.default_socket in php.ini has no effect) for real
2005-09-22 20:14:34 +00:00
Antony Dovgal
bd7a277d48
fix #34450 (Segfault when calling mysqli_close() in destructor)
2005-09-13 09:20:18 +00:00