Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add mysqli support - constants and checking in mysqli_options() for the | Andrey Hristov | 2013-01-09 | 1 | -0/+3 |
| | | | | new constant for password expriration | ||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | Split struct MYSQLND in struct MYSQLND and struct MYSQLD_CONN_DATA. | Andrey Hristov | 2011-10-31 | 1 | -3/+6 |
| | | | | | A step in the direction of keeping internal data private | ||||
* | Move from directly referencing an aggregated structure to using a | Andrey Hristov | 2011-10-25 | 1 | -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 Hui | 2011-09-17 | 1 | -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 Hui | 2011-09-10 | 1 | -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 Hristov | 2011-09-05 | 1 | -1/+1 |
| | | | | mysqlnd is used | ||||
* | Remove a warning by explicitly compiling out a non-used variable | Andrey Hristov | 2011-08-02 | 1 | -0/+2 |
| | |||||
* | Added 'catalog' to the field fetching functions in mysqli (Thanks to ↵ | Kalle Sommer Nielsen | 2011-01-17 | 1 | -0/+1 |
| | | | | Johannes for the headsup) | ||||
* | Change things to allow passing of the password length | Andrey Hristov | 2011-01-14 | 1 | -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 Nielsen | 2011-01-07 | 1 | -0/+1 |
| | | | | return db) | ||||
* | - Year++ | Felipe Pena | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | Fix bad types, because zend_parse_xxx expect signed integers | Andrey Hristov | 2010-11-10 | 1 | -5/+5 |
| | | | | | for lengths, no matter how stupid this is :) | ||||
* | Fix for Bug #52686 mysql_stmt_attr_[gs]et arg. points to incorrect type | Andrey Hristov | 2010-10-06 | 1 | -9/+27 |
| | |||||
* | Sorry for the commit but compiler warnings are annoying and so are white ↵ | Ulf Wendel | 2010-10-04 | 1 | -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 script | Andrey Hristov | 2010-09-30 | 1 | -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 Wendel | 2010-08-30 | 1 | -0/+3 |
| | |||||
* | Fix for bug #52654 mysqli doesn't install headers with structures it uses | Andrey Hristov | 2010-08-20 | 1 | -0/+1 |
| | |||||
* | And a fix for MySQL Server which is pre 5.1.23, which doesn't support | Andrey Hristov | 2010-06-14 | 1 | -0/+17 |
| | | | | | | preserving of the charset when performing change_user. This is libmysql only code. | ||||
* | defensive programming, check before using a resource | Andrey Hristov | 2010-06-01 | 1 | -0/+3 |
| | |||||
* | Fixing mysqli_stmt_attr_set @ libmysql | Ulf Wendel | 2010-05-31 | 1 | -1/+1 |
| | |||||
* | Check before use, because mysqlnd can return NULL | Andrey Hristov | 2010-05-27 | 1 | -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 Hristov | 2010-05-26 | 1 | -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 Hristov | 2010-05-18 | 1 | -11/+0 |
| | | | | | Use one centralized functions for data extraction. | ||||
* | Better fix for #51605 | Andrey Hristov | 2010-05-13 | 1 | -3/+7 |
| | |||||
* | Fix for bug #51605 (Mysqli zombie links) | Andrey Hristov | 2010-05-11 | 1 | -1/+1 |
| | |||||
* | Removed safe_mode | Kalle Sommer Nielsen | 2010-04-26 | 1 | -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. leak | Felipe Pena | 2010-04-21 | 1 | -7/+7 |
| | |||||
* | Fix for bug#49234 method not found ssl_set | Andrey Hristov | 2010-04-15 | 1 | -2/+0 |
| | | | | | Patch was tested and compiles on Windows. (Thanks Kalle) | ||||
* | Fix for bug #51026 ssl not working | Andrey Hristov | 2010-04-08 | 1 | -1/+1 |
| | |||||
* | allow persistency of PS | Andrey Hristov | 2010-03-12 | 1 | -5/+3 |
| | |||||
* | Fix for bug#50772 | Andrey Hristov | 2010-01-25 | 1 | -3/+12 |
| | | | | | mysqli constructor without parameters does not return a working mysqli object | ||||
* | Fix build of mysqli when libmysql is used, mysqlnd_portability.h | Andrey Hristov | 2010-01-14 | 1 | -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 **/*.php | Sebastian Bergmann | 2010-01-03 | 1 | -1/+1 |
| | |||||
* | Unify. The typedef-ed structs in mysqlnd are always capitalized. | Andrey Hristov | 2009-12-23 | 1 | -1/+1 |
| | |||||
* | Fix broken build. | Rasmus Lerdorf | 2009-12-01 | 1 | -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 Wendel | 2009-11-03 | 1 | -4/+79 |
| | | | | appropriate type. | ||||
* | Fixing problems when calling connect (again and again) on a valid connection ↵ | Ulf Wendel | 2009-10-15 | 1 | -14/+24 |
| | | | | handle. Most of the patch comes from Andrey. | ||||
* | Fix mysqli_stmt_attr_set in libmysql mode. | Andrey Hristov | 2009-09-25 | 1 | -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 variable | Andrey Hristov | 2009-09-25 | 1 | -1/+0 |
| | |||||
* | Fix error code checking for mysql_stmt_attr_set. There | Andrey Hristov | 2009-09-25 | 1 | -1/+5 |
| | | | | | is a test that checks this. | ||||
* | MFH: Fix handling of BIT fields in mysqli, when libmysql is used | Andrey Hristov | 2009-09-22 | 1 | -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_execute | Andrey Hristov | 2009-09-18 | 1 | -1/+1 |
| | |||||
* | Fix for bug #49357 (MySQLi extension fails to recognize POINT (spatial) ↵ | Ulf Wendel | 2009-09-11 | 1 | -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 Wendel | 2009-09-11 | 1 | -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 Wendel | 2009-09-11 | 1 | -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 used | Jani Taskinen | 2009-08-04 | 1 | -4/+3 |
| | |||||
* | - Fixed bug #49122 (undefined reference to mysqlnd_stmt_next_result on ↵ | Jani Taskinen | 2009-08-02 | 1 | -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.x | Andrey Hristov | 2009-05-29 | 1 | -1/+1 |
| |