summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* 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
| |
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-07-031-0/+7
|\ \ | |/ | | | | | | | | * PHP-5.6: updated NEWS Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns
| * Fix #69975: PHP segfaults when accessing nvarchar(max) defined columnsChristoph M. Becker2015-07-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The SQL Server Native Client 11.0 and maybe other ODBC drivers report NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0. This causes too small a buffer to be emalloc'd, likely causing a segfault in the following. As we don't know the real size of the column data, we treat such colums as SQL_WLONGVARCHAR. The related bug #67437 suggests that some drivers report a size of ~4GB. It is not certain that this is really the case (there might be some integer overflow involved, and anyway, there has been no feedback), so we do not cater for this now. However, it would not be hard to treat all sizes above a certain threshold in a similar way, i.e. as SQL_WLONGVARCHAR.
| * Fixed bug #69381 out of memory with sage odbc driverFrederic Marchal2015-04-281-0/+9
| | | | | | | | | | | | | | This is just a hotfix as there are still drivers with no full ODBC 3.x support. This patch origins from bug #68350 which was solved by the proper 3.0 migration, another driver (Sage) turned out to have the real issue.
* | Cleanup (avoid reallocation)Dmitry Stogov2015-07-021-9/+10
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-14/+14
| | | | | | | | semantick changes).
* | Fix more proto commentsRasmus Lerdorf2015-06-231-1/+1
| |
* | fix bug #69381Anatol Belski2015-04-281-0/+21
| | | | | | | | a simpler version is to be backported
* | Merge branch 'pull-request/1239'Stanislav Malyshev2015-04-181-1/+1
|\ \ | | | | | | | | | | | | * pull-request/1239: fixes confusing SQLDescribeParam error message
| * | fixes confusing SQLDescribeParam error messageChristoph M. Becker2015-04-161-1/+1
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2015-04-171-14/+14
|\ \ \ | |/ / |/| / | |/ | | | | * PHP-5.6: fix column name attribute with ODBC 3.0 migrate SQLAllocStmt for ODBC 3.0 compliance
| * fix column name attribute with ODBC 3.0Anatol Belski2015-04-171-1/+1
| |
| * migrate SQLAllocStmt for ODBC 3.0 complianceAnatol Belski2015-04-171-13/+13
| |
| * further ODBC 3.0 complianceAnatol Belski2015-04-041-1/+1
| |
| * more compliance with the ODBC 3.0Anatol Belski2015-04-041-6/+6
| |
| * Bump yearXinchen Hui2015-01-151-1/+1
| |
* | further ODBC 3.0 complianceAnatol Belski2015-04-021-1/+1
| |
* | more compliance with the ODBC 3.xAnatol Belski2015-04-021-6/+6
| |
* | integrate static tsrm_ls cache for ext/odbcAnatol Belski2015-03-251-0/+6
| |
* | cleanup mod version macros, round 3Anatol Belski2015-03-231-1/+1
| |
* | fix fetching wrong resourceAnatol Belski2015-03-061-1/+1
| |
* | added ODBCVER to phpinfo()Anatol Belski2015-02-071-0/+4
| |
* | Attempt to port odbcXinchen Hui2015-02-041-67/+141
| |
* | fix int to void * castAnatol Belski2015-02-031-1/+1
| |
* | int -> size_tRasmus Lerdorf2015-01-201-7/+8
| |
* | Fixed key lengthXinchen Hui2015-01-161-2/+2
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-119/+113
| |
* | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-191-3/+3
| |
* | Merge branch 'PHP-5.6'Keyur Govande2014-10-071-2/+3
|\ \ | |/ | | | | | | | | | | * PHP-5.6: Add to NEWS Add to NEWS Fix for bug #68087 (ODBC not reading DATE columns correctly)
| * Fix for bug #68087 (ODBC not reading DATE columns correctly)Keyur Govande2014-10-071-2/+3
| | | | | | | | | | | | | | | | Temporary variable indicating column field type ID should be reset to default for loop iteration (i.e. every column in the record set. The old buggy code made it persist across all columns leading to invalid reads from the buffer, if for example a DATE column was preceded by a VARCHAR column.
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | fix possible pointer truncationAnatol Belski2014-09-141-2/+2
| |
* | Refactored INI subsystem to use zend_string* instead of char*Dmitry Stogov2014-09-011-10/+10
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-8/+8
| |
* | fixed several long vs zend_long castsAnatol Belski2014-08-261-1/+1
| |
* | master renames phase 7PRE_AST_MERGEAnatol Belski2014-08-251-1/+1
| |