summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_sql_parser.c
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate scanners using re2c version >= 1.0.0 (newer version, at least, ↵Dmitry Stogov2018-07-251-25/+24
| | | | produce less code)
* 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-9/+10
| | | | where we sure about string persistence.
* Fix datatypesAnatol Belski2018-03-261-3/+3
|
* Reduce struct size by 8 bytes on 64-bitAnatol Belski2018-02-191-8/+7
|
* Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-01-021-119/+120
|\ | | | | | | | | * PHP-7.1: regenerated with newer re2c
| * regenerated with newer re2cXinchen Hui2018-01-021-119/+120
| |
| * year++Xinchen Hui2018-01-021-1/+1
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
| |
* | Remove dead codeAdam Baratz2016-10-171-126/+0
| |
* | Addendum to #73234: Assume param types are nullableAdam Baratz2016-10-121-2/+8
| |
* | Fix #73234: Emulated statements let value dictate parameter typeAdam Baratz2016-10-101-19/+27
|/ | | | | | | | | | | | | | | | | | The prepared statement emulator (pdo_sql_parser.*) figures out how to quote each query parameter. The intended type is specified by the PDO::PARAM_* consts, but this direction wasn't always followed. In practice, queries could work as expected, but subtle errors could result. For example, a numeric string bound as PDO::PARAM_INT would be sent to a driver's quote function. While these functions are told which type is expected, they generally assume values are being quoted as strings. This can result in implicit casts, which are bad for performance. This commit includes the following changes: - Cast values marked as bool/int/null to the appropriate type and bypass the driver's quote function. - Save some memory by dropping the temporary zval used for casting. - Avoid a memory leak if the driver's quote function produces an error. - Appropriate test suite updates.
* Fixed compilation warningsDmitry Stogov2016-06-221-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-04-051-124/+80
|\ | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fixed bug #71447 (Quotes inside comments not properly handled) Fixed a few PDO tests to conform to PDO Common standards news entry #69537 Fix #69537: __debugInfo with empty string for key gives error Conflicts: Zend/zend_compile.c
| * Fixed bug #71447 (Quotes inside comments not properly handled)Matteo Beccati2016-04-041-124/+80
| |
* | 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
| |
* | Fix setting of empty string resource.Fabian Franz2015-11-051-2/+1
| |
* | Fix bug #70861 Segmentation fault in pdo_parse_params() during Drupal 8 test ↵Anatol Belski2015-11-051-0/+4
| | | | | | | | suite
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-2/+2
| | | | | | | | semantick changes).
* | fix typosolshevskiy872015-05-131-2/+2
| | | | | | | | Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
* | Use new ZEND_HASH_FOREACH_... API.Dmitry Stogov2015-02-101-18/+14
| |
* | update the .re file for PDOStanislav Malyshev2015-01-271-7/+28
| |
* | size_t cleanup for PDOStanislav Malyshev2015-01-261-5/+5
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-25/+25
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-11/+11
| |
* | reworked the patch, less new stuff but workyAnatol Belski2014-09-251-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TLS is already used in TSRM, the way exporting the tsrm cache through a thread local variable is not portable. Additionally, the current patch suffers from bugs which are hard to find, but prevent it to be worky with apache. What is done here is mainly uses the idea from the RFC patch, but - __thread variable is removed - offset math and declarations are removed - extra macros and definitions are removed What is done merely is - use an inline function to access the tsrm cache. The function uses the portable tsrm_tls_get macro which is cheap - all the TSRM_* macros are set to placebo. Thus this opens the way remove them later Except that, the logic is old. TSRMLS_FETCH will have to be done once per thread, then tsrm_get_ls_cache() can be used. Things seeming to be worky are cli, cli server and apache. I also tried to enable bz2 shared and it has worked out of the box. The change is yet minimal diffing to the current master bus is a worky start, IMHO. Though will have to recheck the other previously done SAPIs - embed and cgi. The offsets can be added to the tsrm_resource_type struct, then it'll not be needed to declare them in the userspace. Even the "done" member type can be changed to int16 or smaller, then adding the offset as int16 will not change the struct size. As well on the todo might be removing the hashed storage, thread_id != thread_id and linked list logic in favour of the explicit TLS operations.
* | swap some standard module properties _ex for std mod propertieskrakjoe2014-09-231-1/+21
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | reduce struct size by 8 byte on 64 bitAnatol Belski2014-09-171-1/+1
| |
* | master renames phase 7PRE_AST_MERGEAnatol Belski2014-08-251-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-15/+15
| |
* | basic macro replacements, all at onceAnatol Belski2014-08-191-14/+14
| |
* | regenerated parser filesAnatol Belski2014-08-171-20/+0
| |
* | Merge branch 'master' into phpngDmitry Stogov2014-06-181-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (41 commits) Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 NEWS Fix Request #67453 Allow to unserialize empty data. Update copyright year to 2014 Update copyright year for re2c generated files Update copyright year to 2014 Update copyright year for re2c files as well Fix patch for bug #67436 fix failed test Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this function. Added tests for bug 67436 Fixed wrong XFAIL test - already fixed Fix typo in Bug #67406 NEWS entry Fix typo in Bug #67406 NEWS entry ... Conflicts: Zend/zend_compile.c ext/session/session.c ext/standard/array.c ext/standard/http_fopen_wrapper.c tests/classes/bug63462.phpt
* | Fixed Hash API usageXinchen Hui2014-05-181-1/+1
| |
* | Fixed Hash API usageXinchen Hui2014-05-181-4/+5
| |
* | Fixed REFERENCE handlingXinchen Hui2014-05-081-6/+18
| |
* | Fixed bugs in pdo_mysqlXinchen Hui2014-05-081-3/+6
| |
* | Split IS_BOOL into IS_FALSE and IS_TRUEDmitry Stogov2014-04-301-1/+2
| |
* | Refactor PDO (only compilable now)Xinchen Hui2014-04-221-20/+19
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Merge branch 'PHP-5.4' into PHP-5.5Rasmus Lerdorf2013-11-071-10/+13
|\ | | | | | | | | | | | | | | * PHP-5.4: Fix bug #65946 - pdo_sql_parser.c permanently converts values bound to strings Conflicts: ext/pdo/pdo_sql_parser.c
| * Fix bug #65946 - pdo_sql_parser.c permanently converts values bound to stringsRasmus Lerdorf2013-11-071-11/+14
| |
* | Merge branch 'PHP-5.4' into PHP-5.5Michael Wallner2013-08-201-28/+33
|\ \ | |/ | | | | | | | | | | | | * PHP-5.4: Fix bug #64953 (Postgres prepared statement positional parameter casting) Conflicts: ext/pdo/pdo_sql_parser.c