Christoph M. Becker
86e603a664
Fix #73333 : 2147483647 is fetched as string
...
We return all integers that can be represented as such by PHP as
integers, and only those that exceed the possible range as strings.
On builds which represent integers with 64 bits, the range check is
unnecessary and might cause code checkers to complain, so we skip this
special casing via the preprocessor according to
<http://git.php.net/?p=php-src.git;a=commit;h=99d087e5 >.
2016-10-17 23:34:41 +02:00
Christoph M. Becker
cc125f277b
Implement #72653 : SQLite should allow opening with empty filename
...
From the [sqlite3_open](https://www.sqlite.org/c3ref/open.html ) docs:
| If the filename is an empty string, then a private, temporary on-disk
| database will be created. This private database will be automatically
| deleted as soon as the database connection is closed.
We make that facility available to userland.
While we're at it, we also do some minor optimizations, remove the
unnecessary check for NUL characters in filename, which is already catered
to by ZPP(p), and add a missing `return` in case db_obj isn't initialized.
2016-07-27 16:41:03 +02:00
Christoph M. Becker
64e3e932fc
Further fixes wrt. bug #72668
...
Not only SQLite3::querySingle(), but also SQLite3::query() and
SQLite3Stmt::execute() were affected.
2016-07-25 17:03:10 +02:00
Christoph M. Becker
57940605da
Fix #70628 : Clearing bindings on an SQLite3 statement doesn't work
...
Obiously, it isn't sufficient to call sqlite3_clear_bindings() alone, but
also the bound_params of the php_sqlite3_stmt have to be cleared.
2016-06-27 17:06:27 +02:00
Nikita Popov
fece24f8f4
Check length of string before comparing to :memory:
2016-02-13 18:01:50 +01:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Xinchen Hui
26471eb69c
Fixed bug #69972 (Use-after-free vulnerability in sqlite3SafetyCheckSickOrOk())
2015-07-07 21:37:35 +08:00
Stanislav Malyshev
2a81733c87
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix bug #66550 (SQLite prepared statement use-after-free)
2015-04-05 22:38:20 -07:00
Stanislav Malyshev
66b853d426
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fix bug #66550 (SQLite prepared statement use-after-free)
2015-04-05 22:37:51 -07:00
Stanislav Malyshev
5ae20c6247
Fix bug #66550 (SQLite prepared statement use-after-free)
2015-04-05 22:36:26 -07:00
Danack
0c27a8eb61
Fix #68760 : Fix freeing null segfault. Added test for behaviour.
2015-03-22 16:46:02 -07:00
Danack
1ec430d4ed
Fix #68760 : Fix freeing null segfault. Added test for behaviour.
2015-03-22 16:44:06 -07:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Xinchen Hui
73c1be2653
Bump year
2015-01-15 23:26:03 +08:00
Julien Pauli
138b6442d4
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix bug #68260
2015-01-09 16:24:32 +01:00
Julien Pauli
dc810543cf
Fix bug #68260
2015-01-09 16:24:14 +01:00
Stanislav Malyshev
403eca4173
Add object initialization checks for sqlite3 classes
2014-07-26 16:57:45 -07:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Xinchen Hui
c0d060f5c0
Bump year
2014-01-03 11:04:26 +08:00
Nikita Popov
0d7a638866
Implement variadic function syntax
...
As per RFC: https://wiki.php.net/rfc/variadics
2013-09-26 18:39:17 +02:00
Veres Lajos
ed2e84e239
typo fixes (accommodate, parameter)
2013-06-10 13:36:03 -07:00
Lars Strojny
99d087e5d4
Fixed bug #63921 : sqlite3::bindvalue and relative PHP functions aren't using sqlite3_*_int64 API
2013-01-14 17:35:07 +01:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Marc Easen
896ac689c9
Fixed the common misspelling of the word occurred (occured -> occurred)
2012-06-30 16:54:03 -07:00
Johannes Schlüter
af516750ff
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Improve check for :memory: pseudo-filename in SQlite
Conflicts:
ext/sqlite3/sqlite3.c
2012-06-22 12:50:30 +02:00
Johannes Schlüter
055ecbc628
Improve check for :memory: pseudo-filename in SQlite
2012-06-22 12:48:39 +02:00
Rasmus Lerdorf
ad5ae9e0bf
Good patch from Brad Dewar that adds missing createCollation()
...
method. Fixes bug #60871 and is related to bug #55226
2012-01-29 03:57:29 +00:00
Rasmus Lerdorf
8850050039
Good patch from Brad Dewar that adds missing createCollation()
...
method. Fixes bug #60871 and is related to bug #55226
2012-01-29 03:57:29 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Ilia Alshanetsky
4ef26e2379
Fixed memset usage (identified by coverity)
2011-08-10 15:30:07 +00:00
Ilia Alshanetsky
38f05cc775
Fixed memset usage (identified by coverity)
2011-08-10 15:30:07 +00:00
Felipe Pena
23e438594d
- Make usage of new PHP_FE_END macro
2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Adam Harvey
a7dbf5a29e
Fix bug #54692 (SQLite3::open() Return Value) by correcting the SQLite3::open()
...
prototype.
2011-05-10 08:14:55 +00:00
Adam Harvey
a642b52295
Fix bug #54692 (SQLite3::open() Return Value) by correcting the SQLite3::open()
...
prototype.
2011-05-10 08:14:55 +00:00
Felipe Pena
29a82ceb56
- Fixed memory leak on SQLite3Result and SQLite3Stmt when assigning to a reference.
2011-01-07 01:11:16 +00:00
Felipe Pena
d3e6f27a76
- Fixed memory leak on SQLite3Result and SQLite3Stmt when assigning to a reference.
2011-01-07 01:11:16 +00:00
Scott MacVicar
e1c1cc0ed5
Implemented FR #53466 (SQLite3Result::columnType() should return false after all of the rows have been fetched).
2011-01-06 00:08:59 +00:00
Scott MacVicar
ef0a793fdd
Implemented FR #53466 (SQLite3Result::columnType() should return false after all of the rows have been fetched).
2011-01-06 00:08:59 +00:00
Scott MacVicar
9e0c423bc4
Fix error with initialisation flag being set too early. If encryption is enabled and fails to decrypt a crash can occur.
...
Also fix a WS error.
2011-01-03 19:15:36 +00:00
Scott MacVicar
aff978c223
Fix error with initialisation flag being set too early. If encryption is enabled and fails to decrypt a crash can occur.
...
Also fix a WS error.
2011-01-03 19:15:36 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Scott MacVicar
3870e58759
Add SQLite3_Stmt::readOnly for checking if a statement is read only
2010-12-31 16:37:12 +00:00
Scott MacVicar
c9c0de49a8
Add SQLite3_Stmt::readOnly for checking if a statement is read only
2010-12-31 16:37:12 +00:00
Felipe Pena
26d7aafb1a
- Fixed bug #53463 (sqlite3 columnName() segfaults on bad column_number)
2010-12-03 21:05:44 +00:00
Felipe Pena
689d1d9e4b
- Fixed bug #53463 (sqlite3 columnName() segfaults on bad column_number)
2010-12-03 21:05:44 +00:00