summaryrefslogtreecommitdiff
path: root/ext/sqlite3
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Fix build if SQLITE_RECURSIVE is not supportedMatteo Beccati2020-01-041-0/+2
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2020-01-031-11/+7
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Fixed bug #79056
| * | | | Fixed bug #79056Nikita Popov2020-01-031-11/+7
| | | | |
* | | | | Use RETURN_THROWS() after zend_throw_exception() in most of the extensionsMáté Kocsis2020-01-021-4/+4
| | | | |
* | | | | Use RETURN_THROWS() after zend_value_error()Máté Kocsis2019-12-311-2/+2
| | | | |
* | | | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-37/+37
| | | | | | | | | | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | | | Add setAuthorizer method to SQLite3BohwaZ2019-12-205-17/+273
| | | | | | | | | | | | | | | | | | | | | | | | | This adds the possibility to define a userland callback that will be used to authorize or not an action on the database.
* | | | | Clean DONE tags from testsFabien Villepinte2019-11-074-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-253-6/+0
| | | | | | | | | | | | | | | | | | | | Closes GH-4732.
* | | | | Implement NUL byte checks for dbnamesChristoph M. Becker2019-09-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we're passing these parameter to C functions accepting `char*` without any further checking, we should reject strings with NUL bytes in the first place.
* | | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-041-0/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF (sqlite)
| * | | | Add missing SKIPIF (sqlite)Fabien Villepinte2019-09-041-0/+2
| | | | |
* | | | | Unify ZPP handling in ext/sqlite3Christoph M. Becker2019-08-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since `zend_parse_parameters()` now throws on failure, it doesn't make sense anymore to use `zend_parse_parameters_throw()` instead, and also it's useless to set an explicit return value.
* | | | | Don't repeat yourselfChristoph M. Becker2019-08-151-35/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLite3::bindParam() and SQLite3::bindValue() have identical implementation (the only thing that differs is the second parameter's passing mode), so we unify the implementation.
* | | | | Convert sqlite3 functions arginfo to php stubsCraig Duncan2019-08-153-150/+313
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-222-8/+8
|\ \ \ \ \ | |/ / / /
| * | | | Report errors from stream read and write operationsNikita Popov2019-07-222-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-07-211-1/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite
| * | | | Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlitePeter Kokot2019-07-211-1/+0
| | | | | | | | | | | | | | | | | | | | Closes GH-4444
* | | | | Merge branch 'PHP-7.4'Peter Kokot2019-07-201-8/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Remove unused sqlite symbols
| * | | | Remove unused sqlite symbolsPeter Kokot2019-07-201-8/+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-11/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Remove unsed zts check for sqlite3
| * | | | Remove unsed zts check for sqlite3Peter Kokot2019-07-141-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This check was relevant with bundled sqlite library. Removed via 6083a387a81dbbd66d6316a3a12a63f06d5f7109 Closes GH-4403
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-023-20/+155
|\ \ \ \ \ | |/ / / /
| * | | | Implement SQLite extended result code functionalityRobert Kopack2019-07-023-20/+155
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-251-0/+2
|\ \ \ \ \ | |/ / / /
| * | | | Fix leak on sqlite3 open errorNikita Popov2019-06-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | sqlite3_open creates the database object even if the operation fails.
* | | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-06-172-0/+126
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Implement SQLite3 backup API
| * | | | Implement SQLite3 backup APIBohwaZ2019-06-172-0/+126
| | | | |
* | | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-06-061-4/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Cheaper checks for exceptions thrown from __toString()
| * | | | Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-061-4/+4
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-052-8/+58
|\ \ \ \ \ | |/ / / /
| * | | | Allow exceptions in __toString()Nikita Popov2019-06-052-8/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-05-281-7/+11
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
| * | | | Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macrosDmitry Stogov2019-05-281-7/+11
| | | | |
* | | | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-05-271-0/+9
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: Fix bug #77967 - Bypassing open_basedir restrictions via file uris
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-05-271-0/+9
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.3: Fix bug #77967 - Bypassing open_basedir restrictions via file uris
| | * | | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-05-271-0/+9
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * PHP-7.2: Fix bug #77967 - Bypassing open_basedir restrictions via file uris
| | | * | Merge branch 'PHP-7.1' into PHP-7.2Stanislav Malyshev2019-05-271-0/+9
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | * PHP-7.1: Fix bug #77967 - Bypassing open_basedir restrictions via file uris
| | | | * Fix bug #77967 - Bypassing open_basedir restrictions via file urisStanislav Malyshev2019-05-271-0/+9
| | | | |
| | | | * SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy ↵bohwaz2019-03-113-0/+50
| | | | | | | | | | | | | | | | | | | | against potential security flaws
| | | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-154-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | * Convert CRLF line endings to LFPeter Kokot2018-10-131-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* | | | | Merge branch 'PHP-7.4'Remi Collet2019-05-211-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: fix typo breaking shared build
| * | | | fix typo breaking shared buildRemi Collet2019-05-211-1/+1
| | | | |
* | | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-05-211-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.4: use {TMP} placeholder in phpt tests
| * | | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-05-211-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.3: use {TMP} placeholder in phpt tests
| | * | | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-05-211-1/+1
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * PHP-7.2: use {TMP} placeholder in phpt tests
| | | * | use {TMP} placeholder in phpt testsHolly Li (WIPRO LIMITED)2019-05-211-1/+1
| | | | |
* | | | | Merge branch 'PHP-7.4'Nikita Popov2019-05-141-1/+1
|\ \ \ \ \ | |/ / / /