summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/php_pdo_mysql_int.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix #80329: Add option to specify LOAD DATA LOCAL white list folderDarek Slusarczyk2021-02-231-0/+3
| | | | | | | | | | | | | | | | | * allow the user to specify a folder where files that can be sent via LOAD DATA LOCAL can exist * add mysqli.local_infile_directory for mysqli (ignored if mysqli.allow_local_infile is enabled) * add PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY for pdo_mysql (ignored if PDO::MYSQL_ATTR_LOCAL_INFILE is enabled) * add related tests * fixes for building with libmysql 8.x * small improvement in existing tests * update php.ini-[development|production] files Closes GH-6448. Co-authored-by: Nikita Popov <nikic@php.net>
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* PDO MySQL: Use native types for resultsNikita Popov2020-12-171-7/+5
| | | | | | | | | | | | | | | | Previously, PDO MySQL only fetched data as native int/float if native prepared statements were used. This patch updates PDO to have the same behavior for emulated prepared statements, and thus removes the largest remaining discrepancy between these two modes. Note that PDO already has a ATTR_STRINGIFY_FETCHES option to control whether native types are desired or not. The previous output can be restored by enabling this option. Most of the tests make use of that option, because this allows the tests to work under libmysqlclient as well, which currently always returns string results (independently of whether native or emulated PS are used).
* Fixed bug #79132Nikita Popov2020-12-111-1/+0
| | | | | | Following cmb's suggestion and replacing the counter with a check against the bound_params HT, which ensures that both cannot go out of sync.
* Fixed bug #62889Nikita Popov2020-12-111-0/+1
| | | | | | | | | | | Our minimum libmysqlclient version requirement is high enough that we don't need to check for MYSQL_OPT_LOCAL_INFILE support. However, the mysql_get_option() function seems to only be available since 5.7 (though it's really hard to find any definitie information on when MySQL introduced certain functions or changes...) so we need to store the value of the flag locally to make it available through getAttribute().
* Fixed bug #66878Nikita Popov2020-12-091-0/+3
| | | | | | | | | | Keep track of whether we have fully consumed all result sets, either using nextRowset() calls or closeCursor() and skip the attempt to consume remaining results sets during destruction in that case. Especiall if closeCursor() has been used, we really shouldn't have this sort of cross-statement inference.
* Fix warnings when building against libmysqlclientNikita Popov2020-09-171-1/+1
| | | | At least for version 8.0 this is warning free now.
* Merge branch 'PHP-7.4'Nikita Popov2020-09-171-0/+3
|\ | | | | | | | | | | | | * PHP-7.4: pdo_mysql/mysqli (native) libmysqlclient_r no-longer used mysql: native mysql-8.0 uses _Bool mysqli: use native api
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-09-171-0/+3
| |\ | | | | | | | | | | | | | | | | | | * PHP-7.3: pdo_mysql/mysqli (native) libmysqlclient_r no-longer used mysql: native mysql-8.0 uses _Bool mysqli: use native api
| | * mysql: native mysql-8.0 uses _BoolDaniel Black2020-09-171-0/+3
| | | | | | | | | | | | MySQL-8.0 removes option MYSQLI_OPT_SSL_VERIFY_SERVER_CERT
| * | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| |/
* | Fix [-Wundef] warning in PDO MySQL extensionGeorge Peter Banyard2020-05-201-5/+5
| |
* | Remove support for libmysqlclient 5.0Nikita Popov2020-04-231-4/+0
| | | | | | | | Closes GH-5391.
* | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | | | | | Closes GH-4732.
* | Remove year range from copyright noticeZeev Suraski2019-01-301-1/+1
|/
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* year++Xinchen Hui2018-01-021-1/+1
|
* Turn "pdo_stmt_methods" into constants.Dmitry Stogov2017-12-141-1/+1
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Add PDO parameter types for national character set stringsAdam Baratz2017-03-201-0/+1
|
* Remove unused fieldAdam Baratz2017-03-201-1/+0
|
* Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-091-0/+3
|\
| * Fixed bug #71003: Add PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERTThomas Orozco2017-03-091-0/+3
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Merge branch 'PHP-7.0'Nikita Popov2016-03-031-1/+1
|\ \ | |/
| * Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | | | | | Also re bug #71575.
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | MNDR:Andrey Hristov2015-11-121-3/+3
|/ / | | | | | | | | | | - cleanup in mysqlnd_result.c - switch from zend_ulong to size_t for lengths. Accordingly change mysqli and pdo_mysql for this.
* | switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
| |
* | Various warning fixesNikita Popov2015-07-171-1/+6
| |
* | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-1/+1
| | | | | | | | which also comply with the current semantics for such macros
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-3/+3
| |
* | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-061-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (35 commits) Fixed bug #68398 msooxml matches too many archives Fix zpp call in apache_getenv() Drop unnecessary zval containers fixed test C89 compat add include for missing localeconv_r proto updated NEWS Fixed bug #65230 setting locale randomly broken Fix compilation error (ref #68424) Removed useless handlers Move checks for references into slow paths of operator functions. Remove duplicate opcode handlers. Revert unintentional docblock change Restored zip/oci8 PHP 4 code, add PHP 7 checks Note macro removal in UPGRADING.INTERNALS Removed ZEND_ENGINE_2 checks (and ZE1 code, it's been a decade!) Zend Engine 3 Updated NEWS Updated NEWS Updated NEWS Start adding new attribute to control multi statements ...
| * \ Merge branch 'PHP-5.6'Julien Pauli2014-12-051-1/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | * PHP-5.6: Updated NEWS Updated NEWS Start adding new attribute to control multi statements
| | * Start adding new attribute to control multi statementspwolanin2014-12-051-1/+2
| | |
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
* | | converted ext/sqlite and ext/pdo_mysql to use static tsrmls cacheAnatol Belski2014-10-161-1/+4
|/ /
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-5/+5
| |
* | yet trivial fixes to mysql extsAnatol Belski2014-08-211-1/+1
| |
* | ported from pdo - pgsql, odbc, mysql, firebirt, dblibAnatol Belski2014-08-191-4/+4
| |
* | Refactor pdo_mysql(incompleted, some tests failed due to no mysqlnd)Xinchen Hui2014-05-071-15/+15
| |
* | Bump yearXinchen Hui2014-01-031-1/+1
|/
* Fix bug 65299Johannes Schlüter2013-07-231-1/+1
|