Andrey Hristov
8c56a23a26
MFH: Two less failing tests, one of which was definitely a leak in mysqli with mysqlnd
...
and pconn. ext/mysql is being fixed with a better fix for similar leak.
2008-07-22 23:44:23 +00:00
Andrey Hristov
e0f45cf7ae
Fix possible bug with persistent connections and mysqlnd
2008-06-24 11:01:38 +00:00
Andrey Hristov
259b652b2e
Make mysqli compilable in a 5_2 environment. Some want to use mysqlnd+mysqli
...
with 5_2. This won't hurt 5_2 in any way. Won't be MFB-ed because HEAD is
completely different.
2008-05-06 17:05:14 +00:00
Andrey Hristov
f4e659d2af
Update ext/mysql's and ext/mysqli's tests
...
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:22:19 +00:00
Andrey Hristov
5abe8c8d01
Small updates & a fix for
...
Bug #43832 mysqi_get_charset() doesn't expose charset comment
2008-03-25 18:27:17 +00:00
Andrey Hristov
caf3e9c3f1
Fixed a bunch of bugs reported in
...
Bug #44352 mysqli_connect_error() false negative for host errors
From now on the mysqli object doesn't have that magic properties, like
error, which were readable but not visible through isset(), property_exists()
and var_dump(). All other ext/mysqli classes were fixed too.
Now it will be easier to debug mysqli based applications.
2008-03-18 16:57:31 +00:00
Andrey Hristov
725b31fc6c
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:15:38 +00:00
Andrey Hristov
ff8a310468
Fix a problem with $mysqi->connect() not working with default values.
...
Fix a leak, bug#39457
2008-03-08 14:55:52 +00:00
Andrey Hristov
1caa85a682
Pconnect working with mysqli_real_connect(). To less failing tests.
2008-02-06 11:34:44 +00:00
Andrey Hristov
7932ccba6d
More optimizations - less MM calls
...
Clearly separated fetching (physical reading) from decoding phases (data
interpretation). Threaded fetching added but disabled as needs more work for
Windows. For Linux needs some touches to add pthreads if this is enabled,
probably with a compile-time switch.
The code reorganisation makes it easy to add also async API, similar to
cURL's one.
2008-01-28 18:25:50 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Andrey Hristov
660ba3b61b
Fix build
2007-11-09 11:06:07 +00:00
Andrey Hristov
6f63004f1a
Fix crash with pconnect
2007-11-09 10:56:28 +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
Antony Dovgal
a06d3b7bf3
revert
2007-04-23 09:27:07 +00:00
Antony Dovgal
85fe8e9663
MFH
2007-04-14 10:35:05 +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
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
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Stefan Esser
f7c77f0f33
Beware of format strings...
2005-12-23 18:23:43 +00:00
Zeev Suraski
a034972797
Fix prototype
2005-12-22 14:55:55 +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
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
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
Antony Dovgal
689f3488a5
fix couple of leaks in MySQLi
2005-06-27 17:33:56 +00:00
Georg Richter
01108f7879
fix for #33474
2005-06-26 04:44:03 +00:00
Georg Richter
d486da963e
added new function mysqli_get_charset
2005-06-03 08:49:01 +00:00
Georg Richter
d72cd1d130
charsets_dir is no longer needed
2005-05-13 13:56:04 +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
Georg Richter
b654b20ef6
Added new function mysqli_set_character_set_name
2005-05-08 08:39:56 +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
Andrey Hristov
f6b12b351e
MFB (fixing bug 31668)
2005-04-27 12:12:58 +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
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
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
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
93bf6517df
Major changes for 4.1.2-alpha/4.1.3-beta:
...
- added container for mysql structure
- added load data infile callback functions (currently disabled under win)
Bug fixes:
- fixed property changes (4.1.1 -> 4.1.2)
- fixed memleak in mysqli_connect
- fixed bug #28100
- fixed bug #28205
- fixed bug #28430
2004-06-05 18:31:56 +00:00
Georg Richter
8e52a1a8a3
added MySQLI ini entries
...
added ini parameter for mysql->reconnect
2004-02-26 11:40:35 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
Georg Richter
c65d7997c3
fixed prototypes for mysqli_connect_err* functions
...
(thx to Mehdi Achour)
2004-02-23 16:49:18 +00:00