summaryrefslogtreecommitdiff
path: root/ext/dba
Commit message (Collapse)AuthorAgeFilesLines
* Sync leading and final newlines in source code filesPeter Kokot2018-10-143-3/+3
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* Trim trailing whitespace in source code filesPeter Kokot2018-10-134-58/+58
|
* Happy new year (Update copyright to 2018)Lior Kaplan2018-01-041-1/+1
|
* year++Xinchen Hui2018-01-0225-25/+25
|
* further data type fixes to ext/dbaAnatol Belski2017-05-292-6/+6
|
* move dba handlers to size_tAnatol Belski2017-05-292-15/+15
|
* fix resetting cursor data if dba_firstkey failedAnatol Belski2017-05-282-2/+3
| | | | | | better symbol check fix config.m4
* fix wrong defineAnatol Belski2017-05-281-1/+1
|
* fix c/p issueAnatol Belski2017-05-281-1/+1
|
* implement support for LMDB in ext/dbaAnatol Belski2017-05-287-0/+457
| | | | | | don't abort txn if cursor is active fix typos
* fix identiationAnatol Belski2017-05-281-15/+14
|
* Improve conditions and visibilityAnatol Belski2017-05-271-4/+3
|
* Fix testAnatol Belski2017-05-271-2/+0
| | | | The lock flag is not set to '-' in the test, so there's no such run.
* Fixed bug #72885 flatfile: dba_fetch() fails to read replaced entryAnatol Belski2017-05-272-1/+78
| | | | | | | With append mode it is only possible to write to the end of the file. It is not suitable for drivers like flatfile. Thus, if the file is created, the stream is closed and is reopened with r+b, otherwise r+ mode is used right away.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-0225-25/+25
|
* since libdb isn't bundled, it needs a config option as wellAnatol Belski2016-10-081-5/+9
|
* Enable QDBM support in ext/dba on WindowsAnatol Belski2016-10-051-0/+12
|
* Merge branch 'PHP-7.1'Christoph M. Becker2016-08-252-0/+72
|\
| * Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-252-0/+72
| |\
| | * Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-252-0/+72
| | |\
| | | * Fix #70825: Cannot fetch multiple values with group in ini fileChristoph M. Becker2016-08-252-0/+72
| | | | | | | | | | | | | | | | | | | | If we have the position already from the last fetch, we also have to preset the current group, because it won't be read again.
* | | | Merge branch 'PHP-7.1'Christoph M. Becker2016-08-251-0/+28
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-251-0/+28
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-251-0/+28
| | |\ \ | | | |/
| | | * Fix #71514: Bad dba_replace condition because of wrong API usageChristoph M. Becker2016-08-252-5/+33
| | | | | | | | | | | | | | | | We're backporting commit 9e309a2d to PHP-5.6, because it is a bugfix.
* | | | Fix dba configuration for WindowsChristoph M. Becker2016-08-191-8/+9
|/ / / | | | | | | | | | | | | | | | | | | To be able to build the dba extension on Windows, libdb was required. This is contrary to *nix where each handler can be configured individually. We only do minimal modifications, instead of adjusting the Windows configuration to match the *nix configuration, for now.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-191-9/+8
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-191-9/+8
| |\ \ | | |/
| | * Revert "Fix dba configuration for Windows"Christoph M. Becker2016-08-191-9/+8
| | | | | | | | | | | | | | | | | | | | | This reverts commit ad76e8a529eabf150f17d313bb035b329bc68dec. After a discussion with Anatol it seems to be better QA wise to not make this change in stable versions or betas.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-191-8/+9
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-191-8/+9
| |\ \ | | |/
| | * Fix dba configuration for WindowsChristoph M. Becker2016-08-191-8/+9
| | | | | | | | | | | | | | | | | | | | | To be able to build the dba extension on Windows, libdb was required. This is contrary to *nix where each handler can be configured individually. To avoid BC breaks, we only do minimal modifications, instead of adjusting the Windows configuration to match the *nix configuration, for now.
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-08-181-1/+1
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-181-1/+1
| |\ \ | | |/
| | * Fix broken test includeChristoph M. Becker2016-08-181-1/+1
| | | | | | | | | | | | To avoid that the test stalls, we must always use `t` mode.
* | | Fixed testsDmitry Stogov2016-07-052-2/+10
| | |
* | | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-052-2/+2
|\ \ \
| * | | E_RECOVERABLE_ERROR -> thrown ErrorAaron Piotrowski2016-06-142-2/+2
| |/ /
* | | Fixed compilation warningsDmitry Stogov2016-06-221-1/+1
|/ /
* | Fixed bug #72157 (use-after-free caused by dba_open)Xinchen Hui2016-05-052-5/+23
| |
* | Eliminate usages of _PP macrosNikita Popov2016-03-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | These are either in debug code (fix them), commented out (drop them) or in dead compatibility macros (drop them). One usage was in php_stream_get_from_zval(), which we have not used since at least PHP 5.2 and, judging from the fact that nobody complained about it causing compile errors in PHP 7, nobody else uses it either, so drop it. There are still remaining uses in mysqli embedded and odbc birdstep. These probably need to be dropped outright.
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-0125-25/+25
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-0125-25/+25
| |
| * ext/dba/config.m4: Autodetect Berkeley DB v5.3.Michael Orlitzky2015-12-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user passes --with-db4=DIR to ./configure, the directory DIR is searched for a number of paths in order of preference. These paths contain possible locations for Berkeley DB (BDB) to be installed, and since PHP only supports BDB-4.x and BDB-5.x, it's important that (for example) version 5.1 be autodetected before falling back to /usr/include/db.h which can point to BDB-6.x. The newer BDB-5.3 works with PHP, and if only BDB-5.3 is installed on the user's system, the current ./configure script is fine. However, if both BDB-5.3 and BDB-6.0 are installed, version 5.3 is not autodetected, causing BDB-6.0 to be used. The ./configure step then fails. This commit adds autodetection for BDB-5.3, and fixes a bug reported on Gentoo at https://bugs.gentoo.org/show_bug.cgi?id=564824.
* | Return -1 seems bug hereXinchen Hui2015-12-101-2/+2
| |
* | iFixed key leak with invalid resourceXinchen Hui2015-12-101-5/+12
| |
* | ext/dba/config.m4: Autodetect Berkeley DB v5.3.Michael Orlitzky2015-12-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user passes --with-db4=DIR to ./configure, the directory DIR is searched for a number of paths in order of preference. These paths contain possible locations for Berkeley DB (BDB) to be installed, and since PHP only supports BDB-4.x and BDB-5.x, it's important that (for example) version 5.1 be autodetected before falling back to /usr/include/db.h which can point to BDB-6.x. The newer BDB-5.3 works with PHP, and if only BDB-5.3 is installed on the user's system, the current ./configure script is fine. However, if both BDB-5.3 and BDB-6.0 are installed, version 5.3 is not autodetected, causing BDB-6.0 to be used. The ./configure step then fails. This commit adds autodetection for BDB-5.3, and fixes a bug reported on Gentoo at https://bugs.gentoo.org/show_bug.cgi?id=564824.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-7/+7
| | | | | | | | semantick changes).
* | This shouldn't have been a part of the previous commitKalle Sommer Nielsen2015-05-191-4/+0
| |
* | * Make ext/dba compile with newer versions of Oracle's Berkeley (in my case 6.1)Kalle Sommer Nielsen2015-05-192-3/+16
| | | | | | | | * Make the db3 driver work with 4.3+