461 Commits

Author SHA1 Message Date
Calvin Buckley
56d3b9dce8 Make sure trusted context options don't trigger on IBM i
It doesn't have these, and trying to do this will cause a function
sequence error. Should fix GH-65.
2025-12-04 14:54:22 -04:00
Calvin Buckley
cafae16cbd Attempt to support PIE (part of #70) 2025-11-26 15:44:40 -04:00
Calvin Buckley
c4a7dfbee5 Push 2.3.1 with this change
Request from users who have tested it; they would prefer a stable
version for this.
2025-10-30 16:26:48 -03:00
Calvin Buckley
562fd86961 Merge pull request #68 from php/use-out-length
Try to use out_length for bound fetched values
2025-10-07 13:46:31 -03:00
Calvin Buckley
ad38bae29b Explain reasoning, fall back to strlen if lower 2025-10-03 17:55:40 -03:00
Calvin Buckley
22ebfb7e3e Try to use out_length for bound fetched values
I have no idea why it's using strlen in the first place, but if SQL/CLI
returns junk in the buffer, then the length might be correct. This
matches what we did with column names on IBM i.

The SQL_BINARY case is more puzzling, but we can take a look at it later
if this works for strings. Why is it ifdef'd to use strlen/out_length
depending on platform?
2025-10-03 17:17:06 -03:00
Calvin Buckley
eccd5a98c2 Remove deprecated backtick operator from test 2025-09-29 12:30:59 -03:00
Calvin Buckley
1f7119bb49 Bump to 2.3.0 RELEASE_2_3_0 2025-09-24 12:13:46 -03:00
Calvin Buckley
072d59c4d1 missed this legacy macro usage 2025-07-29 14:59:18 -03:00
Calvin Buckley
6b00abf9b8 Update Windows PHP action 2025-07-29 14:42:42 -03:00
Calvin Buckley
19cba57ee6 PHP 8.5 prereleases not yet ready for Windows CI 2025-07-29 14:42:25 -03:00
Calvin Buckley
31476b20a4 Fix typo in version list 2025-07-29 14:37:45 -03:00
Heena Bansal
ef69581ee2 Add PHP 8.5 to CI 2025-07-29 14:32:37 -03:00
Heena Bansal
8e848468d3 PHP 8.5 removed deprecated alias for IS_INTERNED 2025-07-29 14:32:02 -03:00
Calvin Buckley
f5d9cf8a1c Update cache action for CI 2025-07-29 14:25:32 -03:00
Calvin Buckley
563f262d31 Merge pull request #64 from praveen-db2/patch-2
Update README.md
2025-02-05 11:51:06 -04:00
Praveen Narayanappa
da562ce0df Update README.md
Few customers getting confused and placing "extension=ibm_db2.so" at wrong place in php.ini file, which leads to unsuccessful extension load. This statement correction helps them to place it correctly.
2025-02-05 11:37:46 +05:30
Calvin Buckley
66c9ee181a Merge pull request #63 from php/fix-gh-62
Fix GH-62
2024-11-27 14:42:55 -05:00
Calvin Buckley
8f50036e43 Merge pull request #61 from php/fix-column-name
Fix garbage in column names on IBM i
2024-11-27 14:42:44 -05:00
Calvin Buckley
cbcc729bfe more compatible SQL, error messages 2024-11-25 18:07:28 -04:00
Calvin Buckley
29ca2733e1 Fix GH-62
Other varchar-like types (i.e. nvarchar as wvarchar) need the same
treatment so they use SQL_NTS, so that empty strings as the bound
parameter will work.
2024-11-25 17:09:16 -04:00
Calvin Buckley
155d36c861 Fix garbage in column names on IBM i
A user reported an issue where the column names can have garbage at the
end in some situations; in this case, it seems to be using QP2SHELL
while also have the CCSID set to 65535. It seems SQL/CLI doesn't null
terminate the names when this happens. Arguably a bug in SQL/CLI, and
arguably on the user as QP2SHELL requires you to set up the environment
yourself, but unfortunately CCSID 65535 and QP2SHELL usage are common.

This resolves the issue by truncating with `name_length`, which is still
set correctly.
2024-11-14 09:24:37 -04:00
Calvin Buckley
8cf053a224 Attempt for 2.2.2 (because header again) RELEASE_2_2_2 2024-10-28 13:46:13 -03:00
Calvin Buckley
fe176e4cde Attempt for 2.2.1 RELEASE_2_2_1 2024-10-28 13:30:19 -03:00
Calvin Buckley
38b4859082 Remove VC++6 cruft 2024-10-28 13:12:59 -03:00
Calvin Buckley
ac6c97641f no symmetry pre-8.2 on string functions it seems 2024-09-27 11:40:09 -03:00
Calvin Buckley
326ee71d58 Remove 7.0-7.2 cruft 2024-09-27 11:36:26 -03:00
Calvin Buckley
8056ec0783 typo 2024-09-27 11:13:20 -03:00
Calvin Buckley
d939bc5272 oops, do it for windows specifically 2024-09-27 11:11:43 -03:00
Calvin Buckley
df2c5e24ee latest action for installing PHP SDK on win
Also raises the minimum version of PHP tested on Windows, to avoid
bloating the test matrix.
2024-09-27 10:39:16 -03:00
Calvin Buckley
267f969f8c Merge pull request #60 from php/fix/php84-compilation
fix: compile on php84
2024-09-27 10:37:06 -03:00
Helmut K. C. Tessarek
3af03bd678 fix: compile on php84 2024-09-27 12:12:30 +02:00
Calvin Buckley
c03e9b7421 Attempt at 2.2.0
Let CI catch anything I missed verification wise
RELEASE_2_2_0
2023-11-15 13:45:53 -04:00
Calvin Buckley
f8ebed4c2a same for 8.4 even though it'll be a year 2023-11-09 16:00:58 -04:00
Calvin Buckley
33d61af918 Run 8.3 in CI
This is nightly 8.3 for now, but this should upgrade to production 8.3
when it's ready.
2023-11-09 15:45:47 -04:00
Calvin Buckley
e7af8fde3d Merge pull request #57 from php/boolean
Boolean support
2023-10-11 14:18:14 -03:00
Calvin Buckley
2f82edbc45 i forget that it's not an array anymore 2023-10-04 13:20:09 -04:00
Calvin Buckley
e9c27e2e5a Fix version checks, add comment, add LUW version check 2023-10-04 12:59:51 -04:00
Calvin Buckley
7e973ed850 make it based on what it is and not want we wish it was 2023-09-18 14:25:06 -04:00
Calvin Buckley
e6f8aa840a Treat SQL_BIT like SQL_BOOLEAN
It seems LUW prefers SQL_BIT (-7), but i prefers SQ_BOOLEAN (16).

The IBM i header files explicitly mark bit (and tinyint) as not
supported, but LUW supports them in the extended datatypes header.
2023-09-18 14:09:18 -04:00
Calvin Buckley
90c495075c Revert "break it for the sake of getting funny results from CI"
This reverts commit 2f28294579.
2023-09-18 14:05:55 -04:00
Calvin Buckley
2f28294579 break it for the sake of getting funny results from CI 2023-09-18 13:08:12 -04:00
Calvin Buckley
7a62942d9c it helps to actually include the connection 2023-09-15 12:20:22 -04:00
Calvin Buckley
17dca9c4f6 Add unit test 2023-09-15 12:05:33 -04:00
Calvin Buckley
9ccdffaad4 Initial boolean support
Works with db2_result (albeit returns an integer) and db2_fetch_*
(which fetches booleans).

Tested on IBM i 7.5. Parameter binding is untested. No CI tests yet,
need to figure out a way to do it sanely.

Fixes GH-56
2023-09-15 10:54:30 -04:00
Calvin Buckley
7c1458c7da Merge pull request #53 from phansys/uncataloged
Argument 1 in `db2_connect()` and `db2_pconnect()` can contain the connection password
2023-03-13 12:42:41 -03:00
Javier Spagnoletti
6b6f802a59 Argument 1 in db2_connect() and db2_pconnect() can contain the connection password 2023-03-13 12:01:00 -03:00
Calvin Buckley
e8e926502d Merge pull request #52 from phansys/db2_fetch_row
Update allowed type and default value for `$row_number` parameter in `db2_fetch_row()`
2023-03-09 12:03:29 -04:00
Javier Spagnoletti
bbc1287db6 Update allowed type and default value for $row_number parameter in db2_fetch_row() 2023-03-09 11:44:25 -04:00
Calvin Buckley
6f65637864 Merge pull request #51 from phansys/row_number
Update allowed type and default value for the `$row_number` parameter in several "fetch" functions
2023-03-09 11:41:48 -04:00