summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-08-281-1/+4
|\ | | | | | | | | * PHP-7.3: Fix #78473: odbc_close() closes arbitrary resources
| * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-08-281-1/+4
| |\ | | | | | | | | | | | | * PHP-7.2: Fix #78473: odbc_close() closes arbitrary resources
| | * Fix #78473: odbc_close() closes arbitrary resourcesChristoph M. Becker2019-08-281-1/+4
| | | | | | | | | | | | | | | We have to bail out, if an invalid resource is given. For consistency with the other `zend_fetch_resource(2)` calls, we return `FALSE`.
* | | Allow exceptions in __toString()Nikita Popov2019-06-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | Remove unused variablePeter Kokot2019-05-121-2/+1
| | |
* | | Use PKG_CHECK_MODULES to detect the iODBC libraryHugh McMaster2019-05-121-1/+1
| | |
* | | Properly initialize out parameterChristoph M. Becker2019-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MS docs on `SQLColAttribute()`[1] state regarding the `NumericAttributePtr` parameter: | Please note that some drivers may only write the lower 32-bit or | 16-bit of a buffer and leave the higher-order bit unchanged. | Therefore, applications should initialize the value to 0 before | calling this function. [1] <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function?view=sql-server-2017>
* | | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-301-1/+1
| | |
* | | Implement typed propertiesNikita Popov2019-01-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* | | Merge branch 'PHP-7.3'Peter Kokot2018-10-301-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-7.3: [ci skip] Update NEWS [ci skip] Update NEWS [ci skip] Update NEWS fix bug #77079
| * | Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2018-10-301-2/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS [ci skip] Update NEWS fix bug #77079
| | * Merge branch 'PHP-7.1' into PHP-7.2Peter Kokot2018-10-301-2/+2
| | |\ | | | | | | | | | | | | | | | | | | | | * PHP-7.1: [ci skip] Update NEWS fix bug #77079
| | | * fix bug #77079Jon Allen2018-10-301-2/+2
| | | |
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-179/+179
| | | |
| | * | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-179/+179
| | | |
* | | | Fix some misspellingsGabriel Caruso2018-08-121-3/+3
|/ / /
* | | Remove unused Git attributes identPeter Kokot2018-07-251-2/+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.
* | | Use variables that already received ZEND_NUM_ARGS()Gabriel Caruso2018-07-221-4/+2
| | |
* | | Removed "dead" code (zend_hash_update() never fails)Dmitry Stogov2018-06-011-6/+2
| | |
* | | Avoid useless checks, using zend_string_efree(), in cases where the string ↵Dmitry Stogov2018-05-081-3/+3
| | | | | | | | | | | | is known to be a temporary allocated zend_string.
* | | Remove, or fix, unused variablesGabriel Caruso2018-03-271-3/+0
| | |
* | | Merge branch 'PHP-7.2'Anatol Belski2018-01-221-0/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed bug #73725 Unable to retrieve value of varchar(max) type
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-01-221-0/+7
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed bug #73725 Unable to retrieve value of varchar(max) type
| | * Fixed bug #73725 Unable to retrieve value of varchar(max) typeAnatol Belski2018-01-221-0/+7
| | |
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Trailing whitespacesGabriel Caruso2018-01-031-178/+178
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Tell the diff by returning NULL, if system has no ODBC data sourcesAnatol Belski2017-12-201-1/+5
| | |
* | | Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Persistent resources are "thread-local".Dmitry Stogov2017-11-011-7/+1
| | | | | | | | | | | | Register persistent resources through new functions zend_register_persistent_resource()/zend_register_persistent_resource_ex().
* | | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
| | | | | | | | | | | | | | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* | | Removed support for ODBCRouterKalle Sommer Nielsen2017-07-281-40/+0
| | |
* | | Removed Bird(broken)step support from ODBCKalle Sommer Nielsen2017-07-191-10/+6
|/ /
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-2/+2
|/
* avoid unneeded copyingAnatol Belski2016-11-071-11/+7
|
* Fixed bug #73448 odbc_errormsg returns trash, always 513 bytesAnatol Belski2016-11-071-15/+8
|
* Merge branch 'PHP-5.6' into PHP-7.0Remi Collet2016-03-171-7/+14
|\ | | | | | | | | | | * PHP-5.6: NEWS Fix Bug #63171 Script hangs after max_execution_time
| * Fix Bug #63171 Script hangs after max_execution_timeRemi Collet2016-03-171-7/+14
| | | | | | | | | | If aborted via timer expiration, don't try to call any unixODBC function which may hangs because of internal locks
| * Fixed bug #47803Anatol Belski2016-02-241-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Executing prepared statements is succesfull only for the first two statements The reworked patch descends to the bug #69526 which is fixed by this as well. The broken logic in the current code was, that SQLDescribeParam was executed in odbc_execute every time. This piece is now moved into odbc_prepare and the results are carried on in an additional structure. Since the ext/odbc headers are not being currently installed and the corresponding structs like odbc_result are not used outside ext/odbc, the binary compatibility persists. Executing SQLDescribeParam only once in odbc_prepare is also an optimization as the filds usually won't change that fast and thus requestind the descriptions on every execution is not required.
* | fix pointer truncation on 64 bitAnatol Belski2016-03-141-1/+1
| |
* | Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | | | | | Also re bug #71575.
* | Port patch and test for bug #47803 to 7.0Anatol Belski2016-02-241-18/+23
| | | | | | | | See ff115e285ab5192f9e12a43d5dc202d88b01f1ea
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
* | properly export ext/odbc globalsAnatol Belski2015-08-021-1/+1
| |
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-07-031-2/+2
|\ \ | |/ | | | | | | * PHP-5.6: fixed fix #69975 wrt. ODBCVER < 0x0300
| * fixed fix #69975 wrt. ODBCVER < 0x0300Christoph M. Becker2015-07-031-2/+2
| |