Christoph M. Becker
a6ecafece9
Use external iterator instead of via the internal pointer
2020-09-29 11:41:17 +02:00
Christoph M. Becker
a0051be42a
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80152 : odbc_execute() moves internal pointer of $params
2020-09-29 11:36:54 +02:00
Christoph M. Becker
b87e43d931
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80152 : odbc_execute() moves internal pointer of $params
2020-09-29 11:35:41 +02:00
Christoph M. Becker
bf5f07cc8b
Fix #80152 : odbc_execute() moves internal pointer of $params
...
As least intrusive fix, we separate the passed array argument.
Closes GH-6219.
2020-09-29 11:34:48 +02:00
Christoph M. Becker
9f5a77188c
Fix #22986 : odbc_connect() may reuse persistent connection
...
`odbc_connect()` should not reuse persistent connections, since that
prohibits multiple concurrent connections, which are occasionally
desireable. We fix that by no longer looking for already cached
connections when `odbc_connect()` is called, and instead creating a new
connection instead.
Closes GH-6223.
2020-09-29 11:20:41 +02:00
Christoph M. Becker
5f5eba1d7a
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80150 : Failure to fetch error message
2020-09-29 11:05:31 +02:00
Christoph M. Becker
e08f69194c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80150 : Failure to fetch error message
2020-09-29 11:04:09 +02:00
Christoph M. Becker
df5efa2fcd
Fix #80150 : Failure to fetch error message
...
In case of statement related errors, we need to pass the respective
statement handle to `SQLError()`.
Closes GH-6217.
2020-09-29 11:02:51 +02:00
Christoph M. Becker
3d148804cc
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #80147 : BINARY strings may not be properly zero-terminated
2020-09-25 13:53:19 +02:00
Christoph M. Becker
1086e4ec88
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80147 : BINARY strings may not be properly zero-terminated
2020-09-25 13:52:08 +02:00
Christoph M. Becker
a49555a9e1
Fix #80147 : BINARY strings may not be properly zero-terminated
...
We have to manually ensure that all strings fetched from a data source
are zero-terminated.
Closes GH-6213.
2020-09-25 13:51:18 +02:00
Christoph M. Becker
439878c8f9
Rename $qualifier/$owner params to $catalog/$schema
...
These have been called qualifier and owner with ODBC 2, but ODBC 3
changed that to catalog and schema, respectively.
Closes GH-6210.
2020-09-25 13:46:23 +02:00
Máté Kocsis
166178ae6d
Update ext/odbc stub hash
2020-09-25 11:19:50 +02:00
Christoph M. Becker
3277cb6941
Remove outdated link to bug report
...
That bug has been fixed, so no need to keep that link any longer.
2020-09-24 23:21:50 +02:00
Máté Kocsis
9b50fd2626
Fix UNKNOWN default values in ext/odbc
...
Closes GH-6154
2020-09-24 22:17:04 +02:00
Christoph M. Becker
553072b0be
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Use proper skipif section
2020-09-24 17:14:22 +02:00
Christoph M. Becker
54cbee526a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Use proper skipif section
2020-09-24 17:13:01 +02:00
Christoph M. Becker
e74f89d95a
Use proper skipif section
...
The ODBC tests have to be skipped if no connection to the server can be
established.
2020-09-24 17:12:18 +02:00
Christoph M. Becker
555e7eccc4
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #78470 : odbc_specialcolumns() no longer accepts $nullable
2020-09-24 12:23:37 +02:00
Christoph M. Becker
901d022001
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78470 : odbc_specialcolumns() no longer accepts $nullable
2020-09-24 12:16:54 +02:00
Christoph M. Becker
610e7d2c77
Fix #78470 : odbc_specialcolumns() no longer accepts $nullable
...
It is mandatory to pass either `SQL_NO_NULLS` or `SQL_NULLABLE` as
tenth parameter to `SQLSpecialColumns()`; otherwise the function call
fails. Therefore the user must be allowed to pass the desired value
as parameter to `odbc_specialcolumns()` again.
Closes GH-6200.
2020-09-24 12:15:59 +02:00
Christoph M. Becker
c25b5c64d1
Fix test for cases where data sources are available
...
That `bool(false)` is a relict of adapting the test expectations to the
warning promotions.
2020-09-24 11:26:16 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
Nikita Popov
d4e5b5b6fc
Fix compilation warnings in odbc
...
SQLCHAR* cast all the things.
2020-09-17 12:52:31 +02:00
Máté Kocsis
36fd95b524
Generate arginfos
2020-09-16 21:28:27 +02:00
Máté Kocsis
de912821e0
Display string default values in stubs more uniformly
...
Settling on using quoted string
2020-09-16 21:27:01 +02:00
George Peter Banyard
c1823c6c8a
Promote warning to Error in ODBC extension
...
Closes GH-6123
2020-09-15 12:50:00 +02:00
Máté Kocsis
3e800e997b
Move custom type checks to ZPP
...
Closes GH-6034
2020-09-02 11:11:38 +02:00
Máté Kocsis
bdacd2ae8f
Add a few missing types to stubs
2020-08-01 23:55:08 +02:00
Max Semenik
2b5de6f839
Remove proto comments from C files
...
Closes GH-5758
2020-07-06 21:13:34 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
Nikita Popov
c9b9f525a9
Include stub hash in generated arginfo files
...
The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necessary.
This ensures that release artifacts will never try to regenerate
stubs and thus fetch PHP-Parser, as long as you do not modify any
files.
Closes GH-5739.
2020-06-24 09:55:19 +02:00
Dmitry Stogov
2423288f0f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed possible usage of uninitialized value
2020-05-27 11:27:34 +03:00
Dmitry Stogov
886a34b1cc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed possible usage of uninitialized value
2020-05-27 11:26:25 +03:00
Dmitry Stogov
1f521a0b23
Fixed possible usage of uninitialized value
2020-05-27 11:25:18 +03:00
George Peter Banyard
85104fae37
Fix [-Wundef] warning in ODBC extension
2020-05-20 14:01:10 +02:00
Máté Kocsis
3709e74b5e
Store default parameter values of internal functions in arg info
...
Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2020-04-08 18:37:51 +02:00
Máté Kocsis
21cfa03f17
Generate function entries for another batch of extensions
...
Closes GH-5352
2020-04-05 21:15:30 +02:00
Máté Kocsis
a43bc33fb2
Annotate function aliases in stubs
2020-04-04 13:03:16 +02:00
Máté Kocsis
960318ed95
Change argument error message format
...
Closes GH-5211
2020-02-26 15:00:08 +01:00
Máté Kocsis
ac0853eb26
Make type error messages more consistent
...
Closes GH-5092
2020-02-17 14:22:17 +01:00
Christoph M. Becker
7d0102dfa7
Revert "Replace @param annotations with type declarations"
...
This reverts commit c31029f335 .
2020-02-17 08:55:18 +01:00
Christoph M. Becker
c31029f335
Replace @param annotations with type declarations
2020-02-16 23:43:38 +01:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Máté Kocsis
aadd3aaed9
Use RETURN_THROWS() in various places
2020-01-03 21:10:24 +01:00
Máté Kocsis
bbcfa66e06
Use RETURN_THROWS() after zend_fetch_resource*()
2020-01-03 19:20:56 +01:00
Máté Kocsis
7b4a4d2ace
Use RETURN_THROWS() after try_convert_to_string()
2020-01-03 17:04:06 +01:00
Máté Kocsis
345703724c
Use RETURN_THROWS() during ZPP in most of the extensions
...
Except for some bigger ones: reflection, sodium, spl
2019-12-31 11:46:11 +01:00
Máté Kocsis
c58b12334d
Add union return types with one class
2019-11-18 12:44:38 +01:00
Máté Kocsis
27e83d0fb8
Add union return types for function stubs
2019-11-11 14:54:55 +01:00