summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite
Commit message (Collapse)AuthorAgeFilesLines
* Improve parameter names in ext/pdo_sqliteMáté Kocsis2020-10-123-11/+11
| | | | Closes GH-6310
* Make various failure conditions in PDO unconditional errorsGeorge Peter Banyard2020-09-282-56/+78
| | | | | | | This includes TypeErrors, ValueErrors, Error for uninitialized objects and invalid user classes/callable instanciation Closes GH-6212
* Run tidyNikita Popov2020-09-181-1/+1
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Fix #80027 Terrible performance using $query->fetch on queries with many ↵Matteo Beccati2020-08-311-0/+3
| | | | | | | | | | 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 test after is_callable changeNikita Popov2020-08-141-1/+1
|
* Merge branch 'PHP-7.4'Nikita Popov2020-08-112-2/+18
|\ | | | | | | | | * PHP-7.4: Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-08-112-2/+18
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
| | * Fix #64705 errorInfo property of PDOException is null when ↵Ahmed Abdou2020-08-112-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Report len as -1 instead of INT_MAXNikita Popov2020-07-082-2/+2
| | | | | | | | | | | | | | | | | | | | | Per docs it should be -1. And would be on 32-bit systems, but not on 64-bit systems. (cherry picked from commit 39111585a2f8e40e72bdc662eb8b2e3c19e93615)
* | | Add many missing closing PHP tags to testsMáté Kocsis2020-08-092-0/+2
| | | | | | | | | | | | Closes GH-5958
* | | Get rid of empty function entriesMáté Kocsis2020-08-011-7/+1
| | | | | | | | | | | | Closes GH-5917
* | | Add stubs for PDO PGSql extension methodsNikita Popov2020-07-211-1/+1
| | |
* | | Add stubs for PDO SQLite extension methodsNikita Popov2020-07-215-14/+57
| | | | | | | | | | | | Putting these under a dummy PDO_SQLite_Ext class.
* | | Use ZPP callable for PDO SqliteGeorge Peter Banyard2020-07-213-51/+37
| | |
* | | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-101-4/+4
| | | | | | | | | | | | Closes GH-5590
* | | Remove proto comments from C filesMax Semenik2020-07-061-6/+3
| | | | | | | | | | | | Closes GH-5758
* | | Merge branch 'PHP-7.4'Nikita Popov2020-06-032-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Report len as -1 instead of INT_MAX
| * | Report len as -1 instead of INT_MAXNikita Popov2020-06-032-2/+2
| | | | | | | | | | | | | | | Per docs it should be -1. And would be on 32-bit systems, but not on 64-bit systems.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-06-022-1/+33
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #79664: PDOStatement::getColumnMeta fails on empty result set
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-06-022-1/+33
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #79664: PDOStatement::getColumnMeta fails on empty result set
| | * Fix #79664: PDOStatement::getColumnMeta fails on empty result setChristoph M. Becker2020-06-022-1/+33
| | | | | | | | | | | | | | | | | | | | | As its name suggests, `sqlite3_data_count` returns the number of columns in the current row of the result set; we are interested in the number of columns regardless of the current row, so we have to use `sqlite3_column_count` instead.
* | | Change the default PDO error mode to exceptionsAllenJB2020-05-043-1/+24
| | | | | | | | | | | | According to <https://www.php.net/manual/en/pdo.error-handling.php>.
* | | Improve undefined variable error messagesMáté Kocsis2020-03-311-1/+1
| | | | | | | | | | | | Closes GH-5312
* | | Reindent phpt filesNikita Popov2020-02-0312-64/+64
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-02-031-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Apply tidy formatting
| * | Apply tidy formattingNikita Popov2020-02-031-1/+1
| | | | | | | | | | | | Mostly reindent PHP scripts to spaces.
* | | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-173-7/+7
| | | | | | | | | | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-031-10/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79056
| * | Fixed bug #79056Nikita Popov2020-01-031-10/+5
| | |
* | | Remove most uses of ZEND_PARSE_PARAMETERS_END_EX()Nikita Popov2019-10-071-3/+3
| | | | | | | | | | | | | | | As ZPP now throws, it makes no sense to specify an explicit return value.
* | | Convert some notices to warningsNikita Popov2019-10-021-1/+1
| | | | | | | | | | | | Part of https://wiki.php.net/rfc/engine_warnings.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-255-10/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-301-3/+0
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.4: Update NEWS Fix #78348: Remove -lrt from pdo_sqlite.so
| * | Fix #78348: Remove -lrt from pdo_sqlite.soPeter Kokot2019-07-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fdatasync check has been removed since PHP 5.3. The Solaris fix was introduced via 8d63360fc40dec579af5b5f455ef02b85caff5c5 and is today no longer relevant since the sqlite library is neither bundled in php-src anymore neither the check needs to be done via the PHP build system. Closes GH-4485
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-211-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite
| * | Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlitePeter Kokot2019-07-211-0/+1
| | | | | | | | | | | | Closes GH-4444
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-201-4/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Remove unused sqlite symbols
| * | Remove unused sqlite symbolsPeter Kokot2019-07-201-4/+0
| | | | | | | | | | | | | | | | | | | | | - HAVE_SQLITE3_KEY is no longer used in php-src - SQLITE_ENABLE_COLUMN_METADATA is no longer used in php-src Closes GH-4443
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-141-4/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Remove conditional calls of always available macros
| * | Remove conditional calls of always available macrosPeter Kokot2019-07-141-4/+1
| | | | | | | | | | | | | | | | | | | | | These checks were once relevant for these extensions in PECL and PHP versions without availability of the checked macros. Closes GH-4405
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-081-16/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Simplify PHP_CHECK_PDO_INCLUDES calls
| * | Simplify PHP_CHECK_PDO_INCLUDES callsPeter Kokot2019-07-081-16/+1
| | | | | | | | | | | | | | | | | | | | | Conditional checks were once used for backwards compatibility with phpize from PHP versions that didn't have this macro call yet. Closes GH-4376
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-024-1/+56
|\ \ \ | |/ /
| * | Implement SQLite extended result code functionalityRobert Kopack2019-07-024-1/+56
| | |
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-06-282-2/+88
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-06-282-2/+88
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
| | * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-06-282-2/+88
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
| | | * Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changedVincent2019-06-282-2/+88
| | | | | | | | | | | | | | | | Reset stmt->columns when column count changed on new execution of prepared statement
| | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | | * Trim trailing whitespace in *.phptPeter Kokot2018-10-143-6/+6
| | | |