#
2ba10ad0 |
| 12-Jun-2020 |
Nikita Popov |
Revert accidental change Not sure how this happened, but I seem to have reverted 2fd278bc211c2102422c8d8ce0905dfc43cb5c7f as part of 13868508386208f5a1a43b6c17991ad6f3652fea.
Revert accidental change Not sure how this happened, but I seem to have reverted 2fd278bc211c2102422c8d8ce0905dfc43cb5c7f as part of 13868508386208f5a1a43b6c17991ad6f3652fea. Restore the change.
show more ...
|
#
13868508 |
| 12-Jun-2020 |
Nikita Popov |
Use unused attribute for _dummy The (void)_dummy is apparently considered a read of an uninitialized variable. As it is a _Bool now, which has trap representations, this is no longer
Use unused attribute for _dummy The (void)_dummy is apparently considered a read of an uninitialized variable. As it is a _Bool now, which has trap representations, this is no longer considered legal and results in somewhat odd ubsan warnings of the form: runtime error: load of value 0, which is not a valid value for type 'zend_bool' (aka 'bool')
show more ...
|
#
a5e9950c |
| 11-Jun-2020 |
Anatol Belski |
Merge branch 'PHP-7.4' * PHP-7.4: sqlite3: Fix possible use after free
|
#
2fd278bc |
| 11-Jun-2020 |
Anatol Belski |
sqlite3: Fix possible use after free Exception should be thrown before the db handle is destroyed. The backtrace excerpt ==26628== Invalid read of size 4 ==26628== at 0x5
sqlite3: Fix possible use after free Exception should be thrown before the db handle is destroyed. The backtrace excerpt ==26628== Invalid read of size 4 ==26628== at 0x53C49E3: sqlite3_errmsg (in /usr/lib64/libsqlite3.so.0.8.6) ==26628== by 0x38C4E9: zim_sqlite3_open (sqlite3.c:142) ==26628== by 0x8977BF: ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1618) ==26628== by 0x8F801E: execute_ex (zend_vm_execute.h:53824) ==26628== by 0x8FC0BB: zend_execute (zend_vm_execute.h:57920) ==26628== by 0x828F54: zend_execute_scripts (zend.c:1672) ==26628== by 0x793C2C: php_execute_script (main.c:2621) ==26628== by 0x8FEA44: do_cli (php_cli.c:964) ==26628== by 0x8FF9DC: main (php_cli.c:1359) Signed-off-by: Anatol Belski <ab@php.net>
show more ...
|
Revision tags: php-7.4.7, php-7.3.19 |
|
#
864fb0ec |
| 03-Jun-2020 |
Christoph M. Becker |
Implement #47074: phpinfo() reports "On" as 1 for the some extensions What is modified as boolean, should also be displayed as boolean. |
Revision tags: php-7.4.7RC1, php-7.3.19RC1 |
|
#
3b62e8b9 |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warning in SQLite3 extension |
#
50a9f511 |
| 13-May-2020 |
Nikita Popov |
Allow null callback to array_filter() With same behavior as not passing it. |
Revision tags: php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1 |
|
#
99552303 |
| 19-Apr-2020 |
Máté Kocsis |
Fix order of ZPP in ext/sqlite3 |
#
4815be44 |
| 19-Apr-2020 |
Máté Kocsis |
Generate function entries from stubs Converts ext/pcntl, ext/simplexml, ext/snmp, ext/soap, ext/sqlite3. Closes GH-5421 |
Revision tags: php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
50765075 |
| 01-Apr-2020 |
Máté Kocsis |
Improve some ValueError messages Closes GH-5340 |
Revision tags: php-7.4.5RC1, php-7.3.17RC1, php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1 |
|
#
3e1ac7e9 |
| 21-Feb-2020 |
Christoph M. Becker |
Merge branch 'PHP-7.4' * PHP-7.4: Fix #79294: ::columnType() may fail after SQLite3Stmt::reset()
|
#
2a76e3a4 |
| 21-Feb-2020 |
Christoph M. Becker |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fix #79294: ::columnType() may fail after SQLite3Stmt::reset()
|
#
f133f002 |
| 21-Feb-2020 |
Christoph M. Becker |
Fix #79294: ::columnType() may fail after SQLite3Stmt::reset() The fix for feature request #53466 did not properly handle resetting of the corresponding statement; the problem with this
Fix #79294: ::columnType() may fail after SQLite3Stmt::reset() 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>
show more ...
|
Revision tags: php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1 |
|
#
58b17906 |
| 03-Feb-2020 |
Nikita Popov |
Apply tidy formatting Mostly reindent PHP scripts to spaces. |
Revision tags: php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14 |
|
#
d1764ca3 |
| 15-Jan-2020 |
Máté Kocsis |
Make error messages more consistent by fixing capitalization Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable. |
Revision tags: php-7.3.14RC1, php-7.4.2RC1 |
|
#
0f89d407 |
| 04-Jan-2020 |
Matteo Beccati |
Fix build if SQLITE_RECURSIVE is not supported |
#
01a50778 |
| 02-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_throw_exception() in most of the extensions |
#
12ce73a5 |
| 31-Dec-2019 |
Máté Kocsis |
Use RETURN_THROWS() after zend_value_error() |
#
34570372 |
| 31-Dec-2019 |
Máté Kocsis |
Use RETURN_THROWS() during ZPP in most of the extensions Except for some bigger ones: reflection, sodium, spl |
Revision tags: php-7.4.1, php-7.2.26, php-7.3.13, php-7.4.1RC1 |
|
#
39585924 |
| 10-Dec-2019 |
BohwaZ |
Add setAuthorizer method to SQLite3 This adds the possibility to define a userland callback that will be used to authorize or not an action on the database. |
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3 |
|
#
5d6e923d |
| 24-Sep-2019 |
Gabriel Caruso |
Remove mention of PHP major version in Copyright headers Closes GH-4732. |
Revision tags: php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1 |
|
#
9a734c5c |
| 10-Sep-2019 |
Christoph M. Becker |
Implement NUL byte checks for dbnames Since we're passing these parameter to C functions accepting `char*` without any further checking, we should reject strings with NUL bytes in th
Implement NUL byte checks for dbnames 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.
show more ...
|
Revision tags: php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4 |
|
#
a3abbc09 |
| 15-Aug-2019 |
Christoph M. Becker |
Unify ZPP handling in ext/sqlite3 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 u
Unify ZPP handling in ext/sqlite3 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.
show more ...
|
#
e3ebdb6b |
| 15-Aug-2019 |
Christoph M. Becker |
Don't repeat yourself SQLite3::bindParam() and SQLite3::bindValue() have identical implementation (the only thing that differs is the second parameter's passing mode), so we unify th
Don't repeat yourself 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.
show more ...
|
Revision tags: php-7.2.22RC1, php-7.3.9RC1 |
|
#
107c1e0c |
| 10-Aug-2019 |
Craig Duncan |
Convert sqlite3 functions arginfo to php stubs |