Andrey Hristov
9b44cbb490
Remove unused variable
2009-09-25 10:55:06 +00:00
Andrey Hristov
eea0660def
Fix error code checking for mysql_stmt_attr_set. There
...
is a test that checks this.
2009-09-25 10:52:29 +00:00
Andrey Hristov
dcb5c5b0a4
MFH: Fix handling of BIT fields in mysqli, when libmysql is used
...
We need to use macros from mysqlnd to be able to read the
bit fields, as they are specially encoded. mysqlnd is always
there, 5.3+, so its macros can be used, even if mysqlnd is
not compiled as library of choice.
2009-09-22 13:59:29 +00:00
Andrey Hristov
967239727e
MFH:Fix for bug#48909 Segmentation fault in mysqli_stmt_execute
2009-09-18 14:33:08 +00:00
Ulf Wendel
617b4e9bd1
Fix for bug #49357 (MySQLi extension fails to recognize POINT (spatial) colums).
...
Do yourself a favour and use mysqlnd. mysqlnd has no isuses here.
If you insist on using the MySQL Client Library (libmysql) I strongly recommend to use mysqli_stmt_store_result() when fetching geometry data using prepared statements. When streaming data, which is the default for prepared statements, ext/mysqli will have to make a guess on the size of the result buffer it needs. The guess is based on a length reported by the MySQL CLient Library (libmysql). The MySQL Client Library reports 4GB (!) for a POINT - a conservative and safe guess. Consequently, ext/mysqli will try to allocate 4GB of RAM. The true (maximum) size of the column is not available before buffering the result on the client using mysqli_stmt_store_result(). If you call mysqli_stmt_store_result(), the result buffers will not get bigger than needed. However, store_result()/buffering is usually not what you want when you ask for prepared statements.
2009-09-11 13:38:47 +00:00
Ulf Wendel
5dfd12ddb7
Stepping back to PHP 5.2.x and earlier logic of allocating even huge pieces of memory for large BLOB types to avoid data truncation. This fixes the test failure of 005.phpt when using MySQL Client
...
Library (libmysql). The test does pass with mysqlnd because mysqlnd does not have any issues here.
2009-09-11 12:28:47 +00:00
Ulf Wendel
c4c11fd38a
Fixing a crash which must have existed since PHP 5.0. At least the crash can be reproduced with PHP 5.0.6. The crash happens only when using the MySQL Client Library (libmysql) - it does not happen
...
when using mysqlnd.
2009-09-11 12:16:56 +00:00
Jani Taskinen
b312b3af2e
- Revert bad fix for bug #49122 and only enable this when mysqlnd is used
2009-08-04 14:49:33 +00:00
Jani Taskinen
7b411d7cdf
- Fixed bug #49122 (undefined reference to mysqlnd_stmt_next_result on compile with --with-mysqli and MySQL 6.0)
2009-08-02 01:07:38 +00:00
Andrey Hristov
c1d46eb502
MFH:Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x
2009-05-29 13:09:47 +00:00
Kalle Sommer Nielsen
e26710bfc4
Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not affecting HEAD
2009-05-23 02:58:15 +00:00
Ilia Alshanetsky
52f599687a
Fixed build
2009-05-20 13:10:49 +00:00
Kalle Sommer Nielsen
f02ebe4a08
MFH: Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql
2009-05-20 08:30:12 +00:00
Johannes Schlüter
074b084852
MFH: export mysql_refresh
...
[DOC] This makes mysql_refresh() as described in
http://dev.mysql.com/doc/refman/6.0/en/mysql-refresh.html
available as mysqli_Refresh() and mysqli->refresh()
MYSQLI_REFRESH_BACKUP_LOG is only available when linking libmysql 6.0
or mysqlnd
2009-01-22 21:01:58 +00:00
Johannes Schlüter
7d3d47fa27
MFH: Fixed bug #46653
2009-01-09 14:30:00 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Andrey Hristov
bf20aa12c7
MFH:Fix for bug#46019 MySQLi::init() leaks memory
2008-09-19 11:38:46 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Andrey Hristov
7833cf9f10
MFH: Fixed bug#45019 Segmentation fault with SELECT ? and UNION
2008-07-25 12:46:03 +00:00
Dmitry Stogov
833a2295d1
Support for closures
2008-07-17 09:53:42 +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
de560f3161
MFB: Update CVS from the development tree
2008-04-16 12:57:38 +00:00
Andrey Hristov
6867385d75
- Don't modify the variables which are passed for parameter binding.
...
We need to clone them, if there will be a transformation (convert_to_xxx)
which will change the origin
(bug#44390 bind_param / bind_result and Object member variables)
- Make mysqlnd more compatible to libmysql, in this case if the execute of
a statement fails set the state of the statement back to PREPARED
- A test case to check the case of a failing statement.
2008-03-20 14:03:30 +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
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