Commit Graph

433 Commits

Author SHA1 Message Date
Dmitry Stogov
84392e5e7f Fixed memory allocation bugs. Probably this patch should fix bug #31725. 2005-06-07 15:39:35 +00:00
foobar
2018d2df32 We only need LEMON for bundled stuff 2005-06-02 20:06:37 +00:00
Hartmut Holzgraefe
f41bf6123b typo fix 2005-05-30 15:57:54 +00:00
foobar
9b57f5ff36 - Fixed bug #33185 (--enable-session=shared does not build) 2005-05-30 15:14:12 +00:00
Hartmut Holzgraefe
43ba3897c2 gracefully handle changes of the parse.y lemon file,
process it with lemon if available, else just keep the .c file from CVS
not doing so leads to make using its implicit .y->.c rule here and
bison doesn't really understand lemon syntax
2005-05-30 14:15:40 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Marcus Boerger
9b3929a7e9 - Need to make PDO::__construct() final to prevent SEGV it isn't called 1st 2005-05-26 18:36:18 +00:00
Marcus Boerger
457d556f66 - Make SQLiteDatabase derivable by dropping final tag from class and
making the ctor final to ensure it is being called, which is the problem.
2005-05-26 11:53:16 +00:00
Marcus Boerger
2ac0540323 - Add test for deriving PDO 2005-05-24 14:26:22 +00:00
Marcus Boerger
88157ad284 - Add new tests for PDO_FETCH_INTO 2005-05-24 12:39:09 +00:00
foobar
626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
foobar
379394b82c cleanup 2005-05-06 22:51:05 +00:00
Marcus Boerger
3080d49ed4 - Add new tests 2005-04-23 15:21:07 +00:00
foobar
cb0c9ac022 - This is not C++ code 2005-04-19 11:28:02 +00:00
Ilia Alshanetsky
e211d4e3ae Fixed bug #32753 (Undefined constant SQLITE_NOTADB). 2005-04-19 02:58:19 +00:00
Rasmus Lerdorf
802c8e83c9 Don't do PDO here if PDO is disabled 2005-04-16 00:04:27 +00:00
Marcus Boerger
06a96fdfe5 - Fix test (warnings are expected since there is no support for this) 2005-03-21 00:32:48 +00:00
Marcus Boerger
a66e14645c - Add new tests 2005-03-21 00:29:25 +00:00
Marcus Boerger
9c3164e487 - Update 2005-03-20 19:45:36 +00:00
Wez Furlong
5ab7264189 remove debuging code 2005-03-15 15:58:04 +00:00
Wez Furlong
6090964157 I'm a PECL citizen; even though I am HEAD of pecl/sqlite, don't assume that I
am being built against HEAD of php-src.
2005-03-15 15:57:49 +00:00
Wez Furlong
cbcd4271d2 build sqlite2 pdo driver on win32 2005-03-12 01:14:21 +00:00
Marcus Boerger
5985098b98 - Add tests 2005-03-12 00:51:39 +00:00
Marcus Boerger
c7ec6d0ce1 - Errcode might be empty 2005-03-12 00:50:20 +00:00
Wez Furlong
9619c3b811 Fix crappy whitespace 2005-03-12 00:07:44 +00:00
Wez Furlong
52dd9f028e Implement a PDO driver for sqlite 2 2005-03-11 23:57:01 +00:00
Marcus Boerger
253cd12753 - Regroup and add a test 2005-02-19 14:02:24 +00:00
Marcus Boerger
7956ca0211 - SQLite depends on SPL if it is present
- Add SQLiteResult::count()
- SQLiteResult implements Countable if present
2005-02-15 21:09:42 +00:00
Wez Furlong
0aa82c3c83 same fix here 2005-02-13 03:15:11 +00:00
Wez Furlong
474a65e277 update todo 2005-02-06 19:59:32 +00:00
Marcus Boerger
1c2b14b92f - Proto fix 2005-01-25 19:08:38 +00:00
Marcus Boerger
7ec2fe9dcd - Synch with MYSQLi extension and use RuntimeException as base for
SQLiteException if SPL is present.
2005-01-24 18:46:50 +00:00
Marcus Boerger
4a76003201 - Fix proto 2005-01-10 07:19:08 +00:00
Marcus Boerger
0f44e8a722 - Bugfix #31342: SQLite OO interface with Exceptions (hugo dot pl at gmail dot com) 2005-01-10 07:16:25 +00:00
Marcus Boerger
4494f0892b - Implement iterator interface in sqlite 2005-01-10 07:13:56 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Stanislav Malyshev
9fa1ee360b merge patch from http://www.sqlite.org/cvstrac/chngview?cn=1953
bug led to PHP exiting on queries with unknown columns
2005-01-03 11:29:27 +00:00
Stanislav Malyshev
808d9b035f 'l' is long - int won't work on 64-bit 2004-11-26 13:17:30 +00:00
Joe Orton
2685ca935f Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Ilia Alshanetsky
7d18ca4c93 Added sqlite_fetch_column_types() 3rd argument for arrays. 2004-10-14 23:19:38 +00:00
Wez Furlong
0c1a436917 Probable fix for Bug #30147 2004-09-25 23:13:49 +00:00
Ilia Alshanetsky
cd7dafab7c Allow sqlite_fetch_column_types() to properly handle table names with
spaces in them.
2004-08-02 22:43:40 +00:00
Ilia Alshanetsky
fe50278d0a Fixed bug 29395 (sqlite_escape_string() returns bogus data on empty
strings).

Original Patch by: Tony
2004-07-27 16:40:43 +00:00
Wez Furlong
07a17df386 touch to avoid weird implicit makefile rule 2004-07-18 10:34:12 +00:00
Zeev Suraski
ce6717965e Fix sqlite build 2004-07-15 22:34:45 +00:00
Ilia Alshanetsky
0ad4c5037c Touch the file so that build system does not try to rebuild it. 2004-07-12 17:44:40 +00:00
Wez Furlong
a0957e24b7 Fix #28402: no need for -ldl 2004-07-10 12:49:34 +00:00
Wez Furlong
b52f7a01af Bump PHP 5 sqlite extension number to 2.0
(put some distance between it and the 4.3 version)
2004-07-10 12:30:18 +00:00
Wez Furlong
e563b4eafa Upgrade bundled library to 2.8.14 + misc fixes
(http://www.sqlite.org/cvstrac/chngview?cn=1742)
2004-07-10 12:27:51 +00:00
Ard Biesheuvel
5232a5afea 64-bit bugsquash party 2004-06-16 23:57:25 +00:00
Wez Furlong
7916ef2ee1 Allow sqlite to build as a shared ext under win32 2004-05-25 13:01:05 +00:00
Stanislav Malyshev
0821f8f7d9 add sqlite_exec() 2004-05-13 14:19:10 +00:00
Marcus Boerger
2d6770f0e6 - Added missing UNREGISTER_INI_ENTRIES 2004-05-12 10:15:48 +00:00
Derick Rethans
5c9d3842bd - HTML entity to ISO char. 2004-04-30 18:00:24 +00:00
Marcus Boerger
9aab7d7cdf An oumlaut doesn't work here, need ASCII only 2004-04-29 22:57:23 +00:00
Marcus Boerger
af17964ef4 Avoid warning to interfere test result 2004-04-22 22:55:18 +00:00
Ilia Alshanetsky
9da8328bae Empty query checks, bug #28112. 2004-04-22 22:34:29 +00:00
Marcus Boerger
920e4235a4 Add test for bug #28112 2004-04-22 22:29:41 +00:00
Marcus Boerger
ddfb337577 bugfix #28112 2004-04-22 22:26:02 +00:00
Ilia Alshanetsky
8075d977e1 Open basedir & safe_mode exception when copying or attaching to a memory
only database.
2004-04-11 18:53:32 +00:00
Ilia Alshanetsky
824f9a4d11 Fixed bug #27928 (sqlite incorrectly handles invalid filenames). 2004-04-09 18:02:05 +00:00
Marcus Boerger
de56cc51a8 Increase severity level and use a more precise error message. 2004-04-03 14:40:36 +00:00
Marcus Boerger
2ce2300d76 Fix class names 2004-03-29 19:49:17 +00:00
Marcus Boerger
f8ff2ccf20 Fix writing of SQLite and SimpleXMl extension and add Rob to the credits
line of the latter. Add ext/SPL.
2004-03-28 20:27:18 +00:00
Marcus Boerger
f956b50f65 Change to studlyCaps convention
# Hopefully discussed enough this time
2004-03-26 21:16:50 +00:00
Marcus Boerger
962b8d480c Revert studlyCaps change for now
# until we reach a point where the majority knows what they want
2004-03-23 23:30:56 +00:00
Marcus Boerger
82e2b354ac Consitency rules 2004-03-23 08:48:36 +00:00
Marcus Boerger
e6a1f04677 Changed sqlite's OO API to studlyCaps. 2004-03-23 08:03:11 +00:00
Marcus Boerger
dd5d497541 Fix test
# removing string conversion was a stupid idea
2004-03-19 20:05:39 +00:00
Marcus Boerger
edde872904 Fix test 2004-03-19 20:00:18 +00:00
Marcus Boerger
0c8d7457c5 Make test work when user has memory limit setting 2004-03-19 19:56:31 +00:00
Dmitry Stogov
67a0ff81ae Test was fixed 2004-03-17 16:06:18 +00:00
Martin Kraemer
b63def4dfc Typo 2004-03-10 11:24:11 +00:00
Ilia Alshanetsky
a073ba979f Fix function declaration. 2004-03-09 01:28:29 +00:00
Ilia Alshanetsky
7bc8bdec79 Change float operations to safe_emalloc().
Original idea by Sascha (see sess_sqlite.c)
2004-03-09 01:09:35 +00:00
Ard Biesheuvel
b303ba089c More wordsize fixes 2004-03-08 23:11:45 +00:00
Marcus Boerger
6b0f57ee50 Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
Marcus Boerger
b6b7c9eb65 Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
Sascha Schumann
048e66b2a9 Avoid using floating point arithmetic and rely on safe_emalloc
for the multiplication.

The actual size requirement is spelled out as:

** The result is written into a preallocated output buffer "out".
** "out" must be able to hold at least 2 +(257*n)/254 bytes.
** In other words, the output will be expanded by as much as 3
** bytes for every 254 bytes of input plus 2 bytes of fixed overhead.
** (This is approximately 2 + 1.0118*n or about a 1.2% size increase.)
2004-03-07 22:35:26 +00:00
Ilia Alshanetsky
0eb7000b0a Corrected string escape calculation. 2004-03-07 21:57:50 +00:00
Ilia Alshanetsky
e57c749ecc Use correct variable name. 2004-03-06 18:29:54 +00:00
Ilia Alshanetsky
215f0763d0 Fixed a possible memory leaks inside sqlite_popen() &
sqlite_fetch_column_types().
Resolve the file path inside sqlite_factory().
2004-03-06 18:14:54 +00:00
Ilia Alshanetsky
2d630bb6ae Fixed possible crash due to an integer overflow. 2004-03-06 18:11:59 +00:00
Ilia Alshanetsky
f60d104c09 Better extension availability check. 2004-03-06 18:10:32 +00:00
Ilia Alshanetsky
c856e821d0 Fixed possible crash inside sqlite_escape_string() and
sqlite_udf_encode_binary().
2004-02-27 00:29:10 +00:00
Ard Biesheuvel
81f05c18f5 Wordsize fixes 2004-02-25 20:16:27 +00:00
Ard Biesheuvel
5c0cf2311d More wordsize/alignment fixes 2004-02-24 15:47:38 +00:00
Ard Biesheuvel
b2bc520067 64-bit fixes 2004-02-23 16:26:34 +00:00
Ard Biesheuvel
9816c8a4e4 64-bit fix 2004-02-23 01:21:16 +00:00
Ard Biesheuvel
3a91737c73 Fix 64-bit crash 2004-02-22 12:10:00 +00:00
Ilia Alshanetsky
2e2c4375d0 For get_data iterator do not force numeric keys, return keys the user
requests.
2004-02-15 20:42:58 +00:00
Ilia Alshanetsky
d438dad1b2 Fixed a crash inside create_aggregate() method due to incorrect argument
parsing.
2004-02-15 20:15:34 +00:00
Zeev Suraski
30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Zeev Suraski
d77bbe344c kill warning 2004-02-04 12:45:56 +00:00
Zeev Suraski
8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Stig Bakken
330d9f6352 SQLITE_ENCODING should be UTF8 rather than UTF-8 2004-02-03 08:38:22 +00:00
Ilia Alshanetsky
4b1fadbf1c Proper configure switch for sqlite. 2004-01-29 17:21:16 +00:00
Jon Parise
9dd817bbd6 Adding dependencies on sqlite.h for the rest of the source files in the
libsqlite distribution.
2004-01-21 08:51:28 +00:00
Marcus Boerger
c7c9c72d49 Update, id_l is unique 2004-01-18 21:11:55 +00:00
Marcus Boerger
90515ee22a Add spl interaction test. 2004-01-18 20:57:42 +00:00
Marcus Boerger
c1df34cae0 Update 2004-01-18 19:55:50 +00:00
Jon Parise
e91fdf570f Make the compilation of vdbeaux.c dependent on the generation of sqlite.h.
An incremental 'make -j' build will now complete successfully.
2004-01-17 21:03:26 +00:00
Marcus Boerger
1ee90db6e6 No longer needed
# Found by Andrey
2004-01-17 18:04:06 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Wez Furlong
a017b4c5e6 update file for win32 build 2004-01-16 23:48:39 +00:00
Ilia Alshanetsky
d8d76f0fcc Update TODO 2004-01-16 17:50:02 +00:00
Marcus Boerger
a19a36551b Fix shutdown 2004-01-15 21:30:31 +00:00
Pierre Joye
5ecbbf0a8d - Fix the php dependency
(wide copy/paste is not that good no? ;) )
2004-01-15 19:33:10 +00:00
Ilia Alshanetsky
b3853af0b7 MFH: Fixed bug #26911 (crash in sqlite extension when fetching data from
empty queries).
2004-01-14 21:17:09 +00:00
Ilia Alshanetsky
02ea3938be touch generated parser. 2004-01-14 17:53:07 +00:00
Ilia Alshanetsky
6e350b553b Upgraded bundled libsqlite to 2.8.11 (fixed critical bug of *NIX systems). 2004-01-14 17:08:27 +00:00
Wez Furlong
39ac35b083 touch 2004-01-14 12:47:04 +00:00
John Coggeshall
646389a1ff Whoops... Ilia forgot a ')' 2004-01-13 05:23:07 +00:00
Ilia Alshanetsky
47dddfa4ff Fixed a bug that would cause the sqlite session database to grow endlessly. 2004-01-12 22:48:58 +00:00
Marcus Boerger
9c41d8e7b5 No longer needed 2004-01-12 00:21:14 +00:00
Rui Hirokawa
de07b4bbc1 added utf8 support option for sqlite >= 2.8.9. 2004-01-11 02:07:46 +00:00
foobar
bbd9449e6b - Fix build 2004-01-09 04:22:42 +00:00
Marcus Boerger
6e798706e3 There's no more interaction with SPL 2004-01-08 19:28:55 +00:00
foobar
6ae12f1aa8 touch to make build work without lemon.. 2004-01-08 18:23:52 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Wez Furlong
f83b27face fix tests for win32 2004-01-08 16:55:37 +00:00
Wez Furlong
5294ef06c8 add new files to .dsp 2004-01-08 16:23:47 +00:00
Wez Furlong
2f6c4ce81d Update win32 build for new version of libsqlite 2004-01-08 16:18:38 +00:00
Ilia Alshanetsky
a4ea8eb44e Upgrade bundled libsqlite to 2.8.9 2004-01-08 14:25:01 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
b658a26874 emalloc() -> safe_emalloc() 2003-12-31 19:45:46 +00:00
Marcus Boerger
442c2b4eec Add a test 2003-12-28 16:26:21 +00:00
Marcus Boerger
1a48fd929d Fix a memleak
Improve error messages
2003-12-28 16:26:04 +00:00
Rui Hirokawa
05c78af854 revert my previous patch because utf-8 support is still in experimental status. 2003-12-28 14:38:28 +00:00
Rui Hirokawa
585a12d3be added warning message. 2003-12-28 14:26:57 +00:00
Rui Hirokawa
af9b015afc added a option to select character encoding for sqlite. 2003-12-28 14:07:33 +00:00
Marcus Boerger
01b255f0ef Correct in order 2003-12-27 22:16:13 +00:00
Marcus Boerger
a876c54d1c Bugfix #25329 2003-12-27 22:11:48 +00:00
Marcus Boerger
fd7fca402b Not needed 2003-12-27 21:57:16 +00:00
Marcus Boerger
da29458469 Add new test related to bug #25329. 2003-12-27 21:45:50 +00:00
Ilia Alshanetsky
79848fa885 Added sqlite_fetch_column_types() function. 2003-12-18 21:28:00 +00:00
Ilia Alshanetsky
bebaa5b00f Do not mangle column names. 2003-12-14 18:45:37 +00:00
Ilia Alshanetsky
9165dc414e The changes() method should be that of the database object not that of
a result.
Added a test case for this bug.
2003-12-10 18:56:05 +00:00
Ilia Alshanetsky
06b528aa54 Fixed a crash in SQLite when fetching data using sqlite_fetch_object() in
a loop.
2003-12-10 01:02:20 +00:00
Wez Furlong
98f1021dd8 Make these tests work under win32 2003-12-05 13:42:04 +00:00
Edin Kadribasic
b842917d84 Made test work on windows 2003-12-05 02:12:21 +00:00
Marcus Boerger
320a87e4f9 No longer needed 2003-12-04 17:33:08 +00:00
Wez Furlong
ad84dfa937 Build adjustments. 2003-12-03 14:29:45 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Ilia Alshanetsky
8845a0300f Added myself to credits. 2003-11-16 20:43:57 +00:00
Ilia Alshanetsky
a4eebd74a6 Fixed compiler warning. 2003-10-28 04:22:12 +00:00
Marcus Boerger
dcc060382a Add another test 2003-10-27 08:43:52 +00:00
Marcus Boerger
da9ce6380c Rename test 2003-10-27 08:43:25 +00:00
Marcus Boerger
37f6618c64 Allow static methods being called from sqlite sql. Notice by Stphane Mariel 2003-10-25 23:17:15 +00:00
Marcus Boerger
b0b82541e8 Fix class/iterator relationship & handling 2003-10-18 18:43:31 +00:00