Andrey Hristov
1caa85a682
Pconnect working with mysqli_real_connect(). To less failing tests.
2008-02-06 11:34:44 +00:00
Hartmut Holzgraefe
3354b3a480
fixed binary arithmetic (MF5.2)
2008-01-01 18:13:14 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Hartmut Holzgraefe
edee094851
MFH: Fix for bug #42548 "PROCEDURE xxx can't return a result set"
2007-12-25 18:55:40 +00:00
Andrey Hristov
6f63004f1a
Fix crash with pconnect
2007-11-09 10:56:28 +00:00
Jani Taskinen
ecb0fb3f0e
MFH:- Fixed invalid handling of float value passed to an integer field on 64bit machine
2007-10-29 09:51:08 +00:00
Antony Dovgal
74f416106c
..and correct macro
2007-10-17 08:19:07 +00:00
Antony Dovgal
780fa84fbd
MFH: use correct dtro and variable for the callback
2007-10-17 08:18:09 +00:00
Antony Dovgal
c9e481590f
avoid double free and use zval_dtor() where neccessary
2007-10-16 13:20:14 +00:00
Antony Dovgal
1ee4146d71
fix build
2007-10-07 08:30:47 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Andrey Hristov
8b9b553aa2
Import mysqlnd
...
Patch ext/mysql and ext/mysqli to support mysqlnd
2007-10-05 21:23:56 +00:00
Andrey Hristov
09fbf87a6c
Fixed leaks with multiple connects using one mysqli object.
...
HEAD will be fixed during the next mysqlnd merge
Fixed failing test for bug38710, 5.0 version is bad, 5.1 is ok.
2007-09-06 10:07:42 +00:00
Andrey Hristov
649152ca49
Fixed bug #42378 (mysqli_stmt_bind_result memory exhaustion)
...
Fixed regression of bug 38710. Already fixed in HEAD.
#HEAD will be fixed when doing the next merge from svn
2007-09-05 12:36:44 +00:00
Andrey Hristov
38ae7f47c0
Fix build with latest 5.1 sources where gptr is no more.
2007-07-24 09:22:16 +00:00
Andrey Hristov
e1f222858f
Remove dot at the end of the message
2007-06-28 09:07:40 +00:00
Stanislav Malyshev
b925a9248b
Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedir
...
or safe_mode is active
2007-06-18 21:51:32 +00:00
Stanislav Malyshev
6e460bab4e
fix crash/leak in bug #38710
2007-03-08 22:49:53 +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
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Hannes Magnusson
3611a3de4a
Fix protos
2006-10-02 07:44:34 +00:00
Georg Richter
67d2992fdc
MFH: fixed error message
2006-09-29 08:40:10 +00:00
Ilia Alshanetsky
305f597696
Improved fix for bug #37671
2006-08-04 22:13:59 +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
Ilia Alshanetsky
63a658ee7a
Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
2006-06-04 14:56:34 +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
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
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
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
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
Andrey Hristov
3a75666285
WS
2006-01-01 16:55:01 +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
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
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
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
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
Antony Dovgal
062626d03e
use proper macros and vars instead of strlen()
2005-10-10 20:06:35 +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
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