summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.4' into PHP-5.5Andrey Hristov2013-01-091-0/+3
|\
| * 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
| |
* | Happy New YearXinchen Hui2013-01-011-1/+1
| |
* | add protection against core dumps if the underlying library returnsAndrey Hristov2012-10-181-10/+37
| | | | | | | | 0x0 for some reason
* | add a check for libmysqlAndrey Hristov2012-10-031-0/+2
| |
* | change public key setting to PERDIR and finish code that allowsandrey2012-09-251-4/+5
| | | | | | | | to set the key file programatically per mysqli_options()
* | Remove support for local infile handler in mysqli from 5.5andrey2012-05-031-58/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the following functions from the API: mysqli_set_local_infile_default() mysqli_set_local_infile_handler() Using these functions is known to be lead to stability problems in mysqli. It was only enabled when compiling against libmysql. mysqlnd doesn't have this support for local infile. However, with mysqlnd it can be emulated by using stream handlers like in: $c->query("LOAD DATA LOCAL INFILE "http://example.com/import.csv" INTO ...") All available protocols, as well as user implemented ones can be added.
* | - 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.