summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
Commit message (Collapse)AuthorAgeFilesLines
* Support NO_BACKSLASH_ESCAPES with newer libmysqlclientNikita Popov2020-09-181-2/+7
| | | | Requires the use of mysql_real_escape_string_quote().
* Fix #80027 Terrible performance using $query->fetch on queries with many ↵Matteo Beccati2020-08-311-0/+7
| | | | | | | | | | bind parameters Added new flags that allow skipping param_evt(s) that are not used by drivers, in a backwards and forward compatible manner. Updated the pgsql, mysql, sqlite and oci drivers to properly use the new flags. I've left out pdo_dblib, which doesn't have a param_hook, and pdo_firebird, which seems to be using PARAM_EVT_NORMALIZE in a wrong context (param type vs event type).
* Fix #64705 errorInfo property of PDOException is null when ↵Ahmed Abdou2020-08-111-2/+1
| | | | | | | | | PDO::__construct() fails PDO driver constructors are throwing PdoException without setting errorInfo, so create a new reusable function that throws exceptions for PDO and will also set the errorInfo. Use this function in pdo_mysql, pdo_sqlite, and pdo_pgsql.
* Fix MySQL local infile / attr handling on big endian systemsguirish2020-04-161-2/+2
| | | | | | Make sure pointer types match what is used by libmysql everywhere. Closes GH-5380.
* Merge branch 'PHP-7.2' into PHP-7.3Darek Slusarczyk2019-02-111-0/+15
|\
| * Merge branch 'PHP-7.1' into PHP-7.2Darek Slusarczyk2019-02-111-0/+15
| |\
| | * security fix - by default 'local infile' is disabled:Darek Slusarczyk2019-02-111-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | - set default for mysqli.allow_local_infile=0 - explicitly disable PDO::MYSQL_ATTR_LOCAL_INFILE in case of lack of driver options - add getAttribute support for PDO::MYSQL_ATTR_LOCAL_INFILE - update existing tests where needed - add new tests [checking default value and setting on] the 'local infile' in ext/mysqli and ext/pdo_mysql
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Fixed bug #77289Lauri Kenttä2019-01-091-1/+21
| | | | | | | | | | | | | | | Use mysqlnd_restart_psession and mysqlnd_end_psession in PDO MySQL. This makes sure we free last_message while ZMM is still live.
* | | 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.
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-13/+13
| | | | | | | | | | | | where we sure about string persistence.
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Move constants into read-only data segmentDmitry Stogov2017-12-141-2/+2
| | |
* | | Remove version checks for MySQL < 5.0Nikita Popov2017-07-191-34/+0
|/ /
* | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-07-181-1/+1
|\ \ | |/
| * Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-07-181-1/+1
| |\
| | * Fix check of mysql_commit() return valueYaoGuai2017-07-181-1/+1
| | | | | | | | | | | | For mysql_commit() everything non-zero is an error.
* | | Add PDO parameter types for national character set stringsAdam Baratz2017-03-201-4/+43
|/ /
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-091-0/+12
|\ \ | |/
| * Fixed bug #71003: Add PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERTThomas Orozco2017-03-091-0/+12
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fixed compilation warningsDmitry Stogov2016-06-221-2/+6
| |
* | Remove version checksNikita Popov2016-01-301-6/+1
|/ | | | | | | | | | | PHP_VERSION_ID PHP_API_VERSION ZEND_MODULE_API_NO PHP_MAJOR_VERSION, PHP_MINOR_VERSION ZEND_ENGINE_2 I've left litespeed alone, as it seems to genuinely maintain support for many PHP versions.
* Do not edit the value in place (might be relates to #71261)Xinchen Hui2016-01-041-12/+9
|
* 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
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-161-0/+2
|\ \ | |/ | | | | | | Conflicts: ext/mysql/php_mysql.c
| * Fixed bug #68077 (LOAD DATA LOCAL INFILE / open_basedir restriction)Xinchen Hui2015-11-161-0/+2
| | | | | | | | Actually, this only be fixed if php uses mysqlnd
* | Merge branch 'PHP-5.6'Xinchen Hui2015-08-301-23/+28
|\ \ | |/ | | | | | | | | Conflicts: ext/pdo/pdo_dbh.c ext/pdo/php_pdo_driver.h
* | Fixed bug #70272 (Segfault in pdo_mysql)Xinchen Hui2015-08-181-2/+0
| |
* | size_t cleanup for PDOStanislav Malyshev2015-01-261-11/+11
| |
* | Merge branch 'PHP-5.6'Anatol Belski2015-01-151-0/+5
|\ \ | |/ | | | | | | | | | | | | | | | | * PHP-5.6: updated NEWS updated NEWS PDO_MySQL: Differentiate between linux and win32 when passing unix_socket Conflicts: ext/pdo_mysql/mysql_driver.c
| * Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-01-151-3/+8
| |\ | | | | | | | | | | | | | | | * PHP-5.5: updated NEWS PDO_MySQL: Differentiate between linux and win32 when passing unix_socket
| | * PDO_MySQL: Differentiate between linux and win32 when passing unix_socketsteffen2015-01-151-3/+8
| | | | | | | | | | | | | | | | | | Unix uses "127.0.0.1" as default host for named pipes, while when using Windows a "." is required as host by mysqlnd. (This can be seen at mysqlnd.c (line 945 or searching #ifndef PHP_WIN32)
| | * Bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-22/+22
| | |
* | | Merge branch 'PHP-5.6'Matteo Beccati2015-01-051-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
| * | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2015-01-051-0/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
| | * Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific ↵Matteo Beccati2015-01-051-0/+1
| | |\ | | | | | | | | | | | | attribute names
| | | * Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific ↵Matteo Beccati2014-11-101-0/+1
| | | | | | | | | | | | | | | | attribute names
* | | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-46/+46
| | | |
* | | | Merge branch 'PHP-5.6'Anatol Belski2014-12-061-4/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-5.6: C89 compat add include for missing localeconv_r proto
| * | | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-12-061-4/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.5: C89 compat add include for missing localeconv_r proto
| | * | C89 compatAnatol Belski2014-12-061-4/+5
| | | |
* | | | Merge branch 'PHP-5.6'Julien Pauli2014-12-051-2/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Updated NEWS Updated NEWS Start adding new attribute to control multi statements
| * | | Merge branch 'PHP-5.5' into PHP-5.6Julien Pauli2014-12-051-2/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.5: Updated NEWS Start adding new attribute to control multi statements