summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-09-282-1/+19
|\ | | | | | | | | * PHP-7.3: Fix #67465: NULL Pointer dereference in odbc_handle_preparer
| * Fix #67465: NULL Pointer dereference in odbc_handle_preparerChristoph M. Becker2020-09-282-1/+19
| | | | | | | | | | | | We have to initialize `stmt->driver_data` before we use it. Closes GH-6225.
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-172-6/+21
|\ \ | |/ | | | | | | * PHP-7.3: Fix #79038: PDOStatement::nextRowset() leaks column values
| * Fix #79038: PDOStatement::nextRowset() leaks column valuesChristoph M. Becker2020-02-172-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firstly, we must not rely on `stmt->column_count` when freeing the driver specific column values, but rather store the column count in the driver data. Since the column count is a `short`, 16 bit are sufficient, so we can store it in reserved bits of `pdo_odbc_stmt`. Furthermore, we must not allocate new column value storage when the statement is not executed, but rather when the column value storage has not been allocated. Finally, we have to introduce a driver specific `cursor_closer` to avoid that `::closeCursor()` calls `odbc_stmt_next_rowset()` which then frees the column value storage, because it may be still needed for bound columns.
| * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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 *.phptPeter Kokot2018-10-141-1/+1
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove conditional calls of always available macrosPeter Kokot2019-07-141-4/+1
| | | | | | | | | | | | | | These checks were once relevant for these extensions in PECL and PHP versions without availability of the checked macros. Closes GH-4405
* | Simplify PHP_CHECK_PDO_INCLUDES callsPeter Kokot2019-07-081-16/+1
| | | | | | | | | | | | | | Conditional checks were once used for backwards compatibility with phpize from PHP versions that didn't have this macro call yet. Closes GH-4376
* | Prevent further potential test conflictsChristoph M. Becker2019-05-141-0/+1
| |
* | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-4/+2
| | | | | | | | | | | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-1/+1
| |
* | Cleanup unused module globalsDmitry Stogov2019-03-121-16/+0
| |
* | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-20/+12
| | | | | | | | | | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* | updated typo in testRodrigo Prado2019-02-091-1/+1
| | | | | | | | User Group: PHPSP #phptestfestbrasil
* | Remove local variablesPeter Kokot2019-02-039-50/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | Remove yearly range from copyright noticeZeev Suraski2019-01-305-5/+5
| |
* | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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 *.phptPeter Kokot2018-10-141-1/+1
| |
* | Trim trailing whitespace in testsGabriel Caruso2018-10-141-4/+4
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Change some permissions from 755 to 644Peter Kokot2018-08-283-0/+0
|/ | | | | This patch syncs file permissions accross the PHP source code files since these don't need to be executable.
* Fix minor Autoconf coding stylePeter Kokot2018-07-311-1/+1
| | | | | | This fixes two minor Autoconf coding styles. Double quotes in arguments don't need to be escaped. This removes warning given by autoreconf: - warning: back quotes and double quotes must not be escaped in...
* Trim trailing whitespaces in build filesPeter Kokot2018-07-291-5/+5
| | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files: - ext/*/config*.m4 - configure.ac - acinclude.m4
* Remove unused Git attributes identPeter Kokot2018-07-257-12/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Deprecate pdo_odbc.db2_instance_nameNikita Popov2018-07-211-0/+3
| | | | Part of https://wiki.php.net/rfc/deprecations_php_7_3.
* Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* year++Xinchen Hui2018-01-025-5/+5
|
* Merge branch 'PHP-7.2'Anatol Belski2017-12-221-1/+1
|\ | | | | | | | | * PHP-7.2: Fix wrong return value for fail case in set attribute handler in pdo_odbc
| * Fix wrong return value for fail case in set attribute handler in pdo_odbcAnatol Belski2017-12-221-1/+1
| |
* | Merge branch 'PHP-7.2'Anatol Belski2017-12-211-12/+11
|\ \ | |/ | | | | | | * PHP-7.2: Ensure expected items delivered in same order
| * Ensure expected items delivered in same orderAnatol Belski2017-12-211-12/+11
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
| |
* | Turn "pdo_stmt_methods" into constants.Dmitry Stogov2017-12-142-2/+2
| |
* | Move constants into read-only data segmentDmitry Stogov2017-12-143-4/+4
| |
* | Remove EXPERIMENTAL files from fileinfo and pdo_odbc stable extensionsPeter Kokot2017-09-301-2/+0
| |
* | Get rid of all these old package[2].xml files, most of these had no had a ↵Kalle Sommer Nielsen2017-08-171-71/+0
| | | | | | | | | | | | release since PHP4, or any release at all in close to 10 years, some even did not have a package registered at pecl OCI, PDO_OCI and zip are left as they are actively developed and released there
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-025-5/+5
|/
* Merge branch 'master' into throw-error-in-extensionsAaron Piotrowski2016-06-106-22/+74
|\
| * Merge branch 'PHP-7.0'Anatol Belski2016-04-012-0/+64
| |\ | | | | | | | | | | | | * PHP-7.0: Fix ODBC bug for varchars returning with length zero
| | * Fix ODBC bug for varchars returning with length zeroElizabeth Marie Smith2016-04-012-0/+64
| | |
| | * fix invalid pointer on 64-bitAnatol Belski2016-03-103-5/+5
| | |
| * | fix invalid pointer on 64-bitAnatol Belski2016-03-103-5/+5
| | |
| * | Remove version checksNikita Popov2016-01-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP_VERSION_ID PHP_API_VERSION ZEND_MODULE_API_NO PHP_MAJOR_VERSION, PHP_MINOR_VERSION ZEND_ENGINE_2 I've left litespeed alone, as it seems to genuinely maintain support for many PHP versions.
| * | Merge branch 'PHP-7.0'Lior Kaplan2016-01-015-5/+5
| |\ \ | | |/ | | | | | | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| | * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-015-5/+5
| | |\ | | | | | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-015-5/+5
| | | |
| | | * bump yearXinchen Hui2015-01-155-5/+5
| | | |
| * | | Remove leftovers of TSRMLS in docsTom Van Looy2015-12-251-10/+0
| |/ /
* | | Update memory freeing and other issues, revert some changesAaron Piotrowski2015-07-051-2/+1
| | |