summaryrefslogtreecommitdiff
path: root/ext/sqlite3/php_sqlite3_structs.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge branch 'PHP-7.4'Christoph M. Becker2020-02-211-1/+0
|\ | | | | | | | | * PHP-7.4: Fix #79294: ::columnType() may fail after SQLite3Stmt::reset()
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-211-1/+1
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #79294: ::columnType() may fail after SQLite3Stmt::reset()
| | * Fix #79294: ::columnType() may fail after SQLite3Stmt::reset()Christoph M. Becker2020-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix for feature request #53466 did not properly handle resetting of the corresponding statement; the problem with this is that the statement does not know about its result sets. But even if we could fix this, the `complete` handling still appears to be brittle, since the `sqlite3_column_type()`docs[1] state: | If the SQL statement does not currently point to a valid row, or if | the column index is out of range, the result is undefined. Fortunately, we can use `sqlite3_data_count()` instead, since[2]: | If prepared statement P does not have results ready to return (via | calls to the sqlite3_column() family of interfaces) then | sqlite3_data_count(P) returns 0. Thus, we guard `SQLite3::columnType()` with `sqlite3_data_count()`, and completely drop updating the `php_sqlite3_result_object.complete` field, but keep it for ABI BC purposes. [1] <https://www.sqlite.org/c3ref/column_blob.html> [2] <https://www.sqlite.org/c3ref/data_count.html>
* | | Add setAuthorizer method to SQLite3BohwaZ2019-12-201-0/+2
| | | | | | | | | | | | | | | This adds the possibility to define a userland callback that will be used to authorize or not an action on the database.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / | | | | | | Closes GH-4732.
* | 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
|/
* 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
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+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
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-3/+3
| |
* | ported ext/sqlite3Anatol Belski2014-08-191-3/+3
| |
* | Clean up (use zend_string and foreach macros)Xinchen Hui2014-04-231-3/+1
| |
* | Refactored sqlite3 (all tests passes)Xinchen Hui2014-04-231-10/+28
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* less serious compatAbility fixesVeres Lajos2013-07-151-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Good patch from Brad Dewar that adds missing createCollation()Rasmus Lerdorf2012-01-291-0/+11
| | | | | method. Fixes bug #60871 and is related to bug #55226
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH Add the ability to enable exceptions rather than warnings for sqlite3, ↵Scott MacVicar2009-04-271-0/+1
| | | | needed for pyrus.
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH Stop using sqlite3_aggregate_count() as this is now deprecated.Scott MacVicar2008-12-241-0/+6
|
* MFH: fix int<->long mess causing lots of segfaults on x86_64Antony Dovgal2008-08-011-1/+1
|
* MFH: Add freelist for tracking sqlite statements to free on implicit ↵Scott MacVicar2008-07-291-13/+6
| | | | SQLite3::close()
* MFH: fix buildJani Taskinen2008-07-261-0/+124