summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
Commit message (Collapse)AuthorAgeFilesLines
* allow persistency of PSAndrey Hristov2010-03-121-5/+3
|
* Fix for bug#50772 Andrey Hristov2010-01-251-3/+13
| | | | | mysqli constructor without parameters does not return a working mysqli object
* Fix build of mysqli when libmysql is used, mysqlnd_portability.hAndrey Hristov2010-01-141-1/+0
| | | | | | | | might not be available for some weird reasons. Added the macros that we need, in that case Code by Jess Portnoy
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* Unify. The typedef-ed structs in mysqlnd are always capitalized.Andrey Hristov2009-12-231-1/+1
|
* Fix broken build.Rasmus Lerdorf2009-12-011-0/+2
| | | | | This constant is not in older versions of MySQL.
* Fix for bug #49965 . Let mysqli_options() try to cast option values to the ↵Ulf Wendel2009-11-031-5/+79
| | | | appropriate type.
* Fixing problems when calling connect (again and again) on a valid connection ↵Ulf Wendel2009-10-151-18/+27
| | | | handle. Most of the patch comes from Andrey.
* Fix mysqli_stmt_attr_set in libmysql mode.Andrey Hristov2009-09-251-1/+1
| | | | | | | 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.
* Remove unused variableAndrey Hristov2009-09-251-1/+0
|
* Fix error code checking for mysql_stmt_attr_set. ThereAndrey Hristov2009-09-251-1/+5
| | | | | is a test that checks this.
* Fix handling of BIT fields in mysqli, when libmysql is usedAndrey Hristov2009-09-221-10/+25
| | | | | | | | 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.
* Fix for bug#48909 Segmentation fault in mysqli_stmt_executeAndrey Hristov2009-09-181-1/+1
|
* Fix for bug #49357 (MySQLi extension fails to recognize POINT (spatial) ↵Ulf Wendel2009-09-111-1/+3
| | | | | | | | | | 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.
* Stepping back to PHP 5.2.x and earlier logic of allocating even huge pieces ↵Ulf Wendel2009-09-111-1/+3
| | | | | | | | 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.
* Fixing a crash which must have existed since PHP 5.0. At least the crash can ↵Ulf Wendel2009-09-111-2/+2
| | | | | | | 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.
* Merge from PHP_5_3Jani Taskinen2009-08-041-3/+3
|
* - Fixed bug #49122 (undefined reference to mysqlnd_stmt_next_result on ↵Jani Taskinen2009-08-021-3/+3
| | | | compile with --with-mysqli and MySQL 6.0)
* Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.xAndrey Hristov2009-05-291-1/+1
|
* MFB: This should be in HEAD regradless of uint8_t is available or notKalle Sommer Nielsen2009-05-281-0/+4
|
* Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysqlKalle Sommer Nielsen2009-05-201-4/+4
|
* - Removed:Felipe Pena2009-03-271-8/+4
| | | | | | | | - UG(unicode) checks - Changed: - ZEND_STR_TYPE -> IS_UNICODE - convert_to_text -> convert_to_unicode
* - Export mysql_refresh to mysqli (mysqli_refresh(), $mysqli->refresh())Johannes Schlüter2009-01-221-0/+16
|
* Fix #46653 mysqlnd: can't extend mysqliJohannes Schlüter2009-01-091-1/+1
|
* Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Fix for bug#46019 MySQLi::init() leaks memoryAndrey Hristov2008-09-191-1/+7
|
* - Added parameter TSRMLS_DC in zend_is_callable()Felipe Pena2008-08-021-1/+1
|
* Fix bug#45019 Segmentation fault with SELECT ? and UNIONAndrey Hristov2008-07-251-2/+7
|
* support for closuresDmitry Stogov2008-07-171-4/+4
|
* Update ext/mysql's and ext/mysqli's testsAndrey Hristov2008-04-241-0/+42
| | | | | | Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in mysqlnd builds as libmysql doesn't support this feature.
* Update ext/mysql, ext/mysqli and ext/mysqlnd from development treeAndrey Hristov2008-04-161-8/+6
|
* Small fix and a test case to prove itAndrey Hristov2008-03-201-2/+4
|
* Missing lines from the param-bind-non-changing fixAndrey Hristov2008-03-201-19/+60
|
* MFB - Bug #44352 mysqli_connect_error() false negative for host errorsAndrey Hristov2008-03-181-13/+10
|
* Update mysqlnd, ext/mysql and ext/mysqli - now possible to compile with ↵Andrey Hristov2008-03-101-19/+19
| | | | | | | | different configurations one or the another extension to use libmysql or mysqlnd mixed in one binary
* MFB:Andrey Hristov2008-03-081-1/+1
| | | | | | - Fixed problem with $mysqli->connect() not connecting with defaults - Fixed leak (#39475)
* Pconnect working with mysqli_real_connect()Andrey Hristov2008-02-061-81/+6
|
* Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Fix for bug #42548 "PROCEDURE xxx can't return a result set"Hartmut Holzgraefe2007-12-251-0/+2
|
* Fix crashes with pconn (merge from 5_3)Andrey Hristov2007-11-091-6/+1
|
* - Fixed invalid handling of float value passed to an integer field on 64bit ↵Jani Taskinen2007-10-291-1/+6
| | | | machine
* commit lost part of the patchAntony Dovgal2007-10-171-1/+2
|
* use correct dtor and variable for the callbackAntony Dovgal2007-10-171-4/+3
|
* Added macros for managing zval refcounts and is_ref statusesYiduo (David) Wang2007-10-071-2/+2
|
* Update mysqlnd in HEADAndrey Hristov2007-10-021-12/+33
| | | | | Updated ext/mysql and ext/mysqli in HEAD
* Import of mysqlnd and ext/mysql + ext/mysqli patched to be built eitherAndrey Hristov2007-07-241-377/+639
| | | | | | | with libmysql or mysqld. Use --with-mysql=mysqlnd --with-mysqli=mysqlnd to build with mysqlnd.
* MFBAndrey Hristov2007-07-241-4/+4
|
* Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedirStanislav Malyshev2007-06-181-3/+9
| | | | | is active
* use default socket (removed by mistake?)Antony Dovgal2007-04-141-0/+4
|
* MFB: fix crash/leak in bug #38710Stanislav Malyshev2007-03-081-1/+10
|