Andrey Hristov
4dbaaae979
Fix for bug#50772
...
mysqli constructor without parameters does not return a working mysqli object
2010-01-25 13:23:32 +00:00
Andrey Hristov
43d90d8d16
Fix build of mysqli when libmysql is used, mysqlnd_portability.h
...
might not be available for some weird reasons. Added the macros
that we need, in that case
Code by Jess Portnoy
2010-01-14 09:47:57 +00:00
Sebastian Bergmann
22f4ef45fe
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Andrey Hristov
066dad5ff9
Unify. The typedef-ed structs in mysqlnd are always capitalized.
2009-12-23 11:58:45 +00:00
Rasmus Lerdorf
19ab7c5e90
Fix broken build.
...
This constant is not in older versions of MySQL.
2009-12-01 21:39:19 +00:00
Ulf Wendel
7b22d7222b
Fix for bug #49965 . Let mysqli_options() try to cast option values to the appropriate type.
2009-11-03 14:56:04 +00:00
Ulf Wendel
355a88f676
Fixing problems when calling connect (again and again) on a valid connection handle. Most of the patch comes from Andrey.
2009-10-15 15:49:40 +00:00
Andrey Hristov
089e8b56a1
Fix mysqli_stmt_attr_set in libmysql mode.
...
mysql_stmt_attr_set returns my_bool instead of int.
If it was int, then 0 is success and !0 is failure, but
for my_bool 0 (FALSE) is failure and !0 is success.
2009-09-25 12:25:54 +00:00
Andrey Hristov
1d25ad7f5c
Remove unused variable
2009-09-25 10:55:06 +00:00
Andrey Hristov
5d8d0fcfb1
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
e4be0b369c
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:58:52 +00:00
Andrey Hristov
528e66fbf5
Fix for bug#48909 Segmentation fault in mysqli_stmt_execute
2009-09-18 14:32:01 +00:00
Ulf Wendel
30a6d1b851
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
a69c198790
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
9af451ff49
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
90f148ab99
Merge from PHP_5_3
2009-08-04 14:51:29 +00:00
Jani Taskinen
65db89ffbe
- 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
1683d46dc9
Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x
2009-05-29 13:09:22 +00:00
Kalle Sommer Nielsen
d1c04314c5
MFB: This should be in HEAD regradless of uint8_t is available or not
2009-05-28 19:40:37 +00:00
Kalle Sommer Nielsen
b3e899e7ca
Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql
2009-05-20 08:29:23 +00:00
Felipe Pena
04c90a0f51
- Removed:
...
- UG(unicode) checks
- Changed:
- ZEND_STR_TYPE -> IS_UNICODE
- convert_to_text -> convert_to_unicode
2009-03-27 19:28:26 +00:00
Johannes Schlüter
d15503bfcc
- Export mysql_refresh to mysqli (mysqli_refresh(), $mysqli->refresh())
2009-01-22 20:57:32 +00:00
Johannes Schlüter
3bc6285560
Fix #46653 mysqlnd: can't extend mysqli
2009-01-09 14:28:31 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Andrey Hristov
722b9135d9
Fix for bug#46019 MySQLi::init() leaks memory
2008-09-19 11:35:37 +00:00
Felipe Pena
611ecc5111
- Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:40:45 +00:00
Andrey Hristov
cab531026b
Fix bug#45019 Segmentation fault with SELECT ? and UNION
2008-07-25 12:45:27 +00:00
Dmitry Stogov
0cfa6a5977
support for closures
2008-07-17 09:52:51 +00:00
Andrey Hristov
5da78b297b
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:04:58 +00:00
Andrey Hristov
c931468b88
Update ext/mysql, ext/mysqli and ext/mysqlnd from development tree
2008-04-16 12:53:18 +00:00
Andrey Hristov
9732763eca
Small fix and a test case to prove it
2008-03-20 15:34:09 +00:00
Andrey Hristov
46df4529be
Missing lines from the param-bind-non-changing fix
2008-03-20 13:58:46 +00:00
Andrey Hristov
e53f44b9bd
MFB - Bug #44352 mysqli_connect_error() false negative for host errors
2008-03-18 16:58:43 +00:00
Andrey Hristov
60869b3e8e
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:27:15 +00:00
Andrey Hristov
f20d47c541
MFB:
...
- Fixed problem with $mysqli->connect() not connecting with defaults
- Fixed leak (#39475 )
2008-03-08 15:16:08 +00:00
Andrey Hristov
ac3d36818f
Pconnect working with mysqli_real_connect()
2008-02-06 11:35:44 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Hartmut Holzgraefe
229919cb55
Fix for bug #42548 "PROCEDURE xxx can't return a result set"
2007-12-25 18:23:07 +00:00
Andrey Hristov
4ba0bd49fb
Fix crashes with pconn (merge from 5_3)
2007-11-09 12:13:15 +00:00
Jani Taskinen
aed3360625
- Fixed invalid handling of float value passed to an integer field on 64bit machine
2007-10-29 09:50:49 +00:00
Antony Dovgal
29fd758310
commit lost part of the patch
2007-10-17 08:22:01 +00:00
Antony Dovgal
dc8634add8
use correct dtor and variable for the callback
2007-10-17 08:17:34 +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
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
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
3dd8663cb7
use default socket (removed by mistake?)
2007-04-14 10:42:41 +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