summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_driver.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement SQLite extended result code functionalityRobert Kopack2019-07-021-0/+3
|
* Don't use sqlite3_aggregate_count()Nikita Popov2019-06-121-17/+20
| | | | | | This function has been deprecated, with the recommendation that the count should be explicitly tracked in the aggregate context, if it is needed.
* Allow exceptions in __toString()Nikita Popov2019-06-051-1/+4
| | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Fix illogical strncpy sizeChristoph M. Becker2018-12-011-7/+7
| | | | | | | | While both source and destination buffers have the same size (6 bytes), and this is unlikely to change in the future, we nonetheless fix the illogical `strncpy` size. Based on a pull request provided by Cristian Rodríguez.
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-3/+3
|
* Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-3/+3
|
* Require SQLite ≥ 3.5.0 for ext/sqlite3 and ext/pdo_sqliteChristoph M. Becker2018-10-131-4/+0
| | | | | | | | | It is possible to pass flags when opening an SQLite database. For Sqlite < 3.5.0 these are ignored, since `sqlite3_open` doesn't support flags. Neither a warning or notice is raised in this case, nor is this behavior documented in the PHP manual. Instead of fixing it either way, we lift the requirement to SQLite 3.5.0 (released on 2007-09-04) instead of the former SQLite 3.3.9 (released on 2007-01-04).
* 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-4/+4
| | | | 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
|
* Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
| | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* Add support for SQLite open flagsBohwaZ2017-09-061-1/+8
|
* fix build with old system libsqlite (sqlite3_close_v2 may be missing)Remi Collet2017-08-021-0/+4
|
* Only compute callback name in error casesNikita Popov2017-06-251-11/+9
| | | | | Mostly the callback name is only used to report an error. Try to avoid calculating it if no error occurred.
* Avoid useless dereferences and separations during paramter passing.Dmitry Stogov2017-06-191-4/+4
|
* Merge branch 'PHP-7.1'Nikita Popov2017-03-121-3/+5
|\
| * Implement FR #74217: deterministic sqlite functionsandrewnester2017-03-121-4/+5
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Switch to the v2 version of these functions.Rasmus Lerdorf2017-01-221-2/+2
| | | | | | | | | | The sqlite3 docs suggest always using prepare_v2 and the close_v2 could potentially help with an fd leak we have been seeing
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
| |
* | Use new param API in pdo_sqliteSara Golemon2016-12-311-12/+17
|/
* Fixed compilation warningsDmitry Stogov2016-06-221-1/+2
|
* Removed "zend_fcall_info.function_table". It was assigned in many places, ↵Dmitry Stogov2016-04-271-2/+0
| | | | but is never used.
* Removed zend_fcall_info.symbol_tableDmitry Stogov2016-03-021-2/+0
|
* Do not edit the value in place (might be relates to #71261)Xinchen Hui2016-01-041-2/+1
|
* 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
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-4/+4
| | | | | | | | semantick changes).
* | size_t cleanup for PDOStanislav Malyshev2015-01-261-4/+4
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-24/+24
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-54/+48
| |
* | bring back all the TSRMLS_FETCH() stuffAnatol Belski2014-10-151-0/+6
| | | | | | | | for better comparability with the mainstream
* | cleanup TSRMLS_FETCH in ext/pdo*Anatol Belski2014-09-261-6/+0
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-3/+3
| |
* | master renames phase 7PRE_AST_MERGEAnatol Belski2014-08-251-2/+2
| |
* | master renames phase 1Anatol Belski2014-08-251-29/+29
| |
* | ported pdo and pdo_sqliteAnatol Belski2014-08-191-9/+9
| |
* | basic macro replacements, all at onceAnatol Belski2014-08-191-14/+14
| |
* | - Fixed ZTS buildFelipe Pena2014-05-131-2/+2
| |
* | Make they are in the same style of Z_ISREFXinchen Hui2014-05-031-9/+9
| |
* | Fixed AggregateXinchen Hui2014-04-241-20/+19
| |
* | Refactor pdo_sqlite (only compilable)Xinchen Hui2014-04-231-88/+70
| |
* | Cleanup (1-st round)Dmitry Stogov2014-04-151-1/+1
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|