summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
Commit message (Collapse)AuthorAgeFilesLines
* Add mysqli support - constants and checking in mysqli_options() for theAndrey Hristov2013-01-091-0/+3
| | | | new constant for password expriration
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* Split struct MYSQLND in struct MYSQLND and struct MYSQLD_CONN_DATA.Andrey Hristov2011-10-311-3/+6
| | | | | A step in the direction of keeping internal data private
* Move from directly referencing an aggregated structure to using aAndrey Hristov2011-10-251-2/+2
| | | | | | pointer to a structure. The structure is still aggregated but we add a level of indirection for possible plugins to overwrite the storage
* Fix Bug #55703(PHP crash when calling mysqli_fetch_fields) Xinchen Hui2011-09-171-1/+6
| | | | | Since the catalog values always is "def" now, see http://dev.mysql.com/doc/refman/5.0/en/c-api-data-structures.html
* Fixed Bug #55653(PS crash with libmysql when binding same variable as param ↵Xinchen Hui2011-09-101-1/+1
| | | | | | | and out) Actually this caused by attempt to efree a INTERNED string
* Fix for Bug #55582 mysqli_num_rows() returns always 0 for unbuffered, when ↵Andrey Hristov2011-09-051-1/+1
| | | | mysqlnd is used
* Remove a warning by explicitly compiling out a non-used variableAndrey Hristov2011-08-021-0/+2
|
* Added 'catalog' to the field fetching functions in mysqli (Thanks to ↵Kalle Sommer Nielsen2011-01-171-0/+1
| | | | Johannes for the headsup)
* Change things to allow passing of the password lengthAndrey Hristov2011-01-141-0/+4
| | | | | | | to mysqlnd. This is needed as a password might include a \0 and thus we need to be binary safe.
* Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct] need to ↵Kalle Sommer Nielsen2011-01-071-0/+1
| | | | return db)
* - Year++Felipe Pena2011-01-011-1/+1
|
* Fix bad types, because zend_parse_xxx expect signed integersAndrey Hristov2010-11-101-5/+5
| | | | | for lengths, no matter how stupid this is :)
* Fix for Bug #52686 mysql_stmt_attr_[gs]et arg. points to incorrect typeAndrey Hristov2010-10-061-9/+27
|
* Sorry for the commit but compiler warnings are annoying and so are white ↵Ulf Wendel2010-10-041-49/+49
| | | | | | | | | | | | | | spaces at the end of a line, if one uses an editor which removes them on save and diff's get blown up by white space changes... Changes: - remove end of line white space - fix compiler warning "ext/mysqli/mysqli_priv.h:156:27: warning: no newline at end of file" - fix compiler warning "ext/mysqli/mysqli_fe.h:135:25: warning: no newline at end of file" - fix compiler warning "ext/mysqli/mysqli.c:896:11: warning: extra tokens at end of #ifdef directive"
* Plug a leak in mysqli when in the same scriptAndrey Hristov2010-09-301-0/+3
| | | | | | | a pconn is reused. Call end_psession earlier - so will mysqlnd and the plugins free data earlier.
* Adding MYSQLI_OPT_SSL_VERIFY_SERVER_CERT for use with mysqli_options().Ulf Wendel2010-08-301-0/+3
|
* Fix for bug #52654 mysqli doesn't install headers with structures it usesAndrey Hristov2010-08-201-0/+1
|
* And a fix for MySQL Server which is pre 5.1.23, which doesn't supportAndrey Hristov2010-06-141-0/+17
| | | | | | preserving of the charset when performing change_user. This is libmysql only code.
* defensive programming, check before using a resourceAndrey Hristov2010-06-011-0/+3
|
* Fixing mysqli_stmt_attr_set @ libmysqlUlf Wendel2010-05-311-1/+1
|
* Check before use, because mysqlnd can return NULLAndrey Hristov2010-05-271-3/+6
| | | | | and this will crash. However, this can happen only in case of OOM.
* Add checks to check the underlying pointer in the resource.Andrey Hristov2010-05-261-62/+62
| | | | | | | | It can happen that the underlying pointer is freed (like in the case of connection reconnect), and then it cannot be allocated anymore, which means that NULL will be used consequently by the functions that fetch the resource and the crash is immediate.
* Remove duplicated code.Andrey Hristov2010-05-181-11/+0
| | | | | Use one centralized functions for data extraction.
* Better fix for #51605Andrey Hristov2010-05-131-3/+7
|
* Fix for bug #51605 (Mysqli zombie links)Andrey Hristov2010-05-111-1/+1
|
* Removed safe_modeKalle Sommer Nielsen2010-04-261-0/+4
| | | | | | | * Removed ini options, safe_mode* * Removed --enable-safe-mode --with-exec-dir configure options on Unix * Updated extensions, SAPI's and core * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
* - Fix mem. leakFelipe Pena2010-04-211-7/+7
|
* Fix for bug#49234 method not found ssl_setAndrey Hristov2010-04-151-2/+0
| | | | | Patch was tested and compiles on Windows. (Thanks Kalle)
* Fix for bug #51026 ssl not workingAndrey Hristov2010-04-081-1/+1
|
* allow persistency of PSAndrey Hristov2010-03-121-5/+3
|
* Fix for bug#50772 Andrey Hristov2010-01-251-3/+12
| | | | | 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-4/+79
| | | | appropriate type.
* Fixing problems when calling connect (again and again) on a valid connection ↵Ulf Wendel2009-10-151-14/+24
| | | | 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.
* MFH: 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.
* MFH: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.
* - Revert bad fix for bug #49122 and only enable this when mysqlnd is usedJani Taskinen2009-08-041-4/+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)
* MFH:Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.xAndrey Hristov2009-05-291-1/+1
|