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
Xinchen Hui
26471eb69c
Fixed bug #69972 (Use-after-free vulnerability in sqlite3SafetyCheckSickOrOk())
2015-07-07 21:37:35 +08: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
Anatol Belski
8f9cb39cad
fix dir separator in test
2015-03-25 13:11:27 +01:00
Danack
0c27a8eb61
Fix #68760 : Fix freeing null segfault. Added test for behaviour.
2015-03-22 16:46:02 -07:00
Lars Strojny
b16463a9fb
Merge branch 'PHP-5.4' into PHP-5.5
2013-01-14 17:36:07 +01: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
Anatoliy Belsky
6996a51d59
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
2012-04-26 15:18:17 +02:00
Anatoliy Belsky
94d96f7782
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
Conflicts:
ext/sqlite3/tests/sqlite3_15_open_error.phpt
2012-04-26 15:17:46 +02:00
Anatoliy Belsky
4daab0abec
Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
2012-04-26 15:14:26 +02:00
Rasmus Lerdorf
9722bff0c3
Missed the test
2012-01-29 04:20:50 +00:00
Rasmus Lerdorf
d8b312845c
Missed the test
2012-01-29 04:20:50 +00:00
Rasmus Lerdorf
191cc014be
Missed the test
2012-01-29 04:20:50 +00:00
Pierre Joye
b660f32dab
- add skipif
2011-09-06 07:29:59 +00:00
Pierre Joye
702a5de5ac
- add skipif
2011-09-06 07:29:59 +00:00
Pierre Joye
d6a6c1892b
- add skipif
2011-09-06 07:29:59 +00:00
Pierre Joye
9fa90f8a90
- add skipif
2011-09-06 07:28:38 +00:00
Pierre Joye
ce70e2b8fd
- add skipif
2011-09-06 07:28:38 +00:00
Pierre Joye
95aefb0114
- add skipif
2011-09-06 07:28:38 +00:00
Rasmus Lerdorf
78a46b87e3
Fix another broken test. root can read 0200 files.
2011-08-29 06:19:40 +00:00
Rasmus Lerdorf
bf3bb1efbe
Fix another broken test. root can read 0200 files.
2011-08-29 06:19:40 +00:00
Rasmus Lerdorf
7c7aa30322
Fix another broken test. root can read 0200 files.
2011-08-29 06:19:40 +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
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
Patrick Allaert
817776d1b9
- Fixed tests not passing under windows because of the directory separator
...
difference (thanks Eyal Teutsch for reporting)
2010-11-08 09:29:15 +00:00
Patrick Allaert
e2e76d40e3
- Fixed tests not passing under windows because of the directory separator
...
difference (thanks Eyal Teutsch for reporting)
2010-11-08 09:29:15 +00:00
Johannes Schlüter
d7b1fa9d35
Berkeley DB 5's SQL frontend gives a slightly different error than libsqlite
2010-06-01 16:39:36 +00:00
Johannes Schlüter
3a5323e9ee
Berkeley DB 5's SQL frontend gives a slightly different error than libsqlite
2010-06-01 16:39:36 +00:00
Kalle Sommer Nielsen
cb30330800
Merge safe_mode changes into extensions that are in sync in both branches
2010-04-26 23:55:03 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Zoe Slattery
4e0b75042a
fix tests
2009-07-17 09:28:19 +00:00
Scott MacVicar
40521699ce
MFH make SQLite3::enableExceptions() return the previous value.
2009-06-08 02:15:54 +00:00
Kalle Sommer Nielsen
4d855122a5
MFH: Fix test on Windows
2009-05-22 18:27:38 +00:00
Kalle Sommer Nielsen
7852108cce
MFH: Added missing SKIPIF
2009-05-22 18:22:30 +00:00
Hannes Magnusson
ebf4c8ddb8
Fix test
2009-05-18 13:52:16 +00:00
Felipe Pena
b5cec43162
- New tests (testfest BelgiumUG)
2009-05-17 16:51:59 +00:00
Scott MacVicar
bc486b4c7e
MFH Fix bug #47678 - Allow loadExtension to be disabled in SQLite3
2009-03-17 02:45:12 +00:00
Scott MacVicar
037400bbeb
The constructor should also throw exceptions, make this semi useful now.
2009-02-10 00:24:33 +00:00
Scott MacVicar
4159f91181
MFH Add blobOpen method for reading binary blobs via streams.
2009-01-24 12:17:47 +00:00
Scott MacVicar
5b79c37500
MFH Fix bug #47159 - Any SQLite3 statement prepared should be added to the freelist
2009-01-20 09:57:34 +00:00
Scott MacVicar
3fb7f05991
MFH Stop using sqlite3_aggregate_count() as this is now deprecated.
2008-12-24 19:22:16 +00:00
Felipe Pena
9983e2689a
- MFH: Fixed memory leaks in createFunction and createAggregate methods
2008-11-28 15:37:02 +00:00
Antony Dovgal
a9132bb75f
fix test
2008-11-26 11:30:48 +00:00