PHP PDO Driver for Snowflake release notes for 2026¶
This article contains the release notes for the PHP PDO Driver for Snowflake, including the following when applicable:
- Behavior changes
- New features
- Customer-facing bug fixes
Snowflake uses semantic versioning for PHP PDO Driver for Snowflake updates.
See PHP PDO Driver for Snowflake for documentation.
Version 4.4.0 (Dec 3, 2026)¶
New features and updates¶
- Added support for the
SNOWFLAKE_MIN_TLS_VERSIONandSNOWFLAKE_TLS_CIPHERSenvironment variables. They apply to the driver’s HTTP connections, the cloud storage (S3) connections, and the AWS STS connections. Invalid values cause the connection to fail with a bad connection parameters error.SNOWFLAKE_MIN_TLS_VERSIONsets the minimum TLS version. Accepted values are1.2,1.3,TLSv1.2, andTLSv1.3(case-insensitive). You can’t enable protocols older than TLS 1.2.SNOWFLAKE_TLS_CIPHERSis a colon-separated allowlist of cipher suites. Names that start withTLS_are TLS 1.3 suites (TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384, andTLS_CHACHA20_POLY1305_SHA256). Other names are TLS 1.2 suites in OpenSSL format (for example,ECDHE-RSA-AES256-GCM-SHA384orECDHE-ECDSA-CHACHA20-POLY1305). If you specify suites for only one TLS generation, the other generation keeps its defaults. The driver rejects a list that leaves an enabled TLS generation with no usable suite.
- Updated Apache Arrow to v22.0.0.
- Updated Curl to v8.23.0.
- Updated OpenSSL to v3.5.9.
- Upgraded libsnowflakeclient to version 2.13.0.
Changes¶
- Changed the cached credential key (MFA token, ID token, OAuth token, and DPoP token) to a versioned format. The key includes the host and port, the username, and, for OAuth and DPoP, the IdP URL and role. This change fixes cache collisions between accounts, roles, or ports that shared a key.
- The driver doesn’t reuse tokens cached by earlier versions, so users must authenticate again once after upgrading.
- On Linux, the file credential cache is now named
credential_cache_v2.json. You can override the name by setting theSF_TEMPORARY_CREDENTIAL_CACHE_FILE_NAMEenvironment variable to a plain file name without path separators.
Bug fixes¶
- Hardened the Linux file credential cache. The driver now validates the cache file (it must be a regular file, owned by the current user, with mode
0600) before writing to it, and refuses symlinks and files with looser permissions. The driver creates directories with mode0700. IfSF_TEMPORARY_CREDENTIAL_CACHE_DIRis set but unusable, the driver now returns an error instead of falling back toXDG_CACHE_HOMEorHOME. - Fixed issues in processes that fork after the driver is initialized (for example, under PHP-FPM). The driver now starts the CRL cache cleanup thread on first CRL use, and forked child processes no longer try to join a thread they don’t own or inherit a locked cache mutex.
- Fixed a use-after-free error and a data race in the CRL verification callbacks.
- Fixed a data race caused by the CRL cache cleanup thread reading environment variables while other threads modify them.
- The driver now writes CRL cache files atomically, so processes that share the cache directory never read a partially written CRL. The driver also removes stale
sf_crl_tmp_*files older than one hour that were left behind by terminated writers. - Fixed AWS Workload Identity Federation to resolve the STS endpoint by using AWS SDK partition rules, so partitions such as ISO and the European Sovereign Cloud get the correct host. An explicit
wif_hostsetting still takes precedence. The signedGetCallerIdentityURL now keeps the/path for endpoints that have no path.
Version 4.3.1 (Oct 21, 2026)¶
New features and updates¶
- Upgraded libsnowflakeclient to version 2.12.0.
- Updated the bundled Mozilla CA certificate list.
Bug fixes¶
- None.
Version 4.3.0 (Oct 1, 2026)¶
New features and updates¶
- OCSP checking is now disabled by default. Set
ocspfailopen=true(fail-open) orocspfailopen=false(fail-closed) to enable it.disableocspchecks=falseis not an opt-in.disableocspchecks=truedisables fail-open, includingocspfailopen=true. Fail-closed stays on. A later default-off connection does not overwrite a prior OCSP opt-in in the same PHP process. Fail-open does not overwrite fail-closed. - Upgraded libsnowflakeclient to version 2.11.1.
Bug fixes¶
- Improved external-browser callback handling by matching Origin headers to the configured Snowflake account origin, accepting same-origin POST token callbacks, and keeping the listener open for tokenless GET requests.
- Fixed Okta SAML post-back URL decoding to size the destination to the source string and to stop when the form action markup is missing or unclosed.
Version 4.2.0 (Sep 3, 2026)¶
New features and updates¶
- Added the
workload_identity_aws_use_outbound_tokenconnection parameter (defaultfalse) to opt into AWS Workload Identity Federation attestation using STSGetWebIdentityToken(JWT) instead of the default SigV4GetCallerIdentitymethod. - Added the
wif_hostconnection parameter to override the STS/IAM endpoint domain used for AWS and GCP Workload Identity Federation. - Added CRL cache cleanup so expired CRLs no longer accumulate in long-lived processes. New environment variables control cleanup behavior:
SF_CRL_CACHE_CLEANUP_INTERVAL(default 3600 seconds; set to 0 to disable)SF_CRL_CACHE_VALIDITY_TIME(default 86400 seconds)SF_CRL_ON_DISK_CACHE_REMOVAL_DELAY(default 604800 seconds)
- Migrated Azure storage from azure-storage-cpplite to Azure SDK for C++ (azure-storage-blobs 12.18.0).
- Removed the
wif_audienceconnection parameter. - Updated Curl to v8.21.0.
- Upgraded libsnowflakeclient to version 2.10.0.
Bug fixes¶
- Restored SigV4
GetCallerIdentityas the default AWS Workload Identity Federation attestation method. The STSGetWebIdentityToken(JWT) flow introduced in version 4.0.0 is now opt-in via theworkload_identity_aws_use_outbound_tokenconnection parameter. - Restricted
WORKLOAD_IDENTITYauthentication to recognized Snowflake hosts before fetching ambient cloud credentials. TheSNOWFLAKE_WIF_ALLOWED_HOST_SUFFIXESenvironment variable can add extra trusted suffixes. - Fixed credentials appearing in diagnostic trace output.
- Fixed the HTTP retry path so the request buffer is reset correctly.
- Fixed a delay in the AWS identity detector.
- Tightened string copy bounds checking after the Azure SDK migration to prevent a buffer overflow.
Version 4.1.0 (Jul 23, 2026)¶
New features and updates¶
- Added support for TOML configuration file connections. When
config.tomlorconnections.tomlis present, you can connect with an empty DSN and no username/password:new PDO("snowflake:", null, null). Connection parameters in the TOML file are equivalent to specifying them in the DSN. See Managing Snowflake connections. - Updated OpenSSL to v3.5.7.
- Upgraded libsnowflakeclient to version 2.9.2.
Bug fixes¶
- Fixed memory handling in the named-parameter binding path when parameters are rebound or cleared during statement teardown.
- Calling
PDO::quote()now returns SQLSTATE IM001 with a clear message that quoting is not supported. Applications using prepared statements with bound parameters are unaffected. - Private key passphrases are now masked in DEBUG-level connection log output, consistent with other sensitive connection parameters.
- Improved validation of account, region, host, protocol, and port connection attributes used in request URLs.
- Improved OCSP cache reliability under concurrent access.
- Fixed a resource handling issue that could affect DNS resolution when address lookup fails.
Version 4.0.0 (Jun 16, 2026)¶
BCR (Behavior Change Release) changes¶
- PHP 8.1 is no longer supported.
New features and updates¶
- Added support for PHP 8.5.
- Added support for forwarding the Snowpark Container Services session token in the login request. When the
SNOWFLAKE_RUNNING_INSIDE_SPCSenvironment variable is set totrue, the driver reads the token from/snowflake/session/spcs_tokenand attaches it asSPCS_TOKENon the login payload. - Added the
SF_SKIP_TOKEN_FILE_PERMISSIONS_VERIFICATIONenvironment variable as the namespaced replacement forSKIP_TOKEN_FILE_PERMISSIONS_VERIFICATIONwhen reading JSON token files. The unprefixed variable still works but is now logged as deprecated. - Changed AWS workload identity federation attestation from a base64-encoded signed STS
GetCallerIdentityrequest to a JWT obtained from STSGetWebIdentityToken. - Updated Curl to v8.20.0.
- Updated OpenSSL to v3.0.21.
- Updated AWS SDK for C++ to v1.11.806.
- Upgraded libsnowflakeclient to version 2.9.1.
Bug fixes¶
- Fixed an infinite JWT renewal loop during login when
renew_timeoutelapses repeatedly (for example, behind a bad proxy or slow network). Renewal is now bound by the configured login retry count and overall login timeout. - Fixed misleading error message when building the driver on Windows.
Version 3.7.0 (Apr 22, 2026)¶
New features and updates¶
- Added the
log_query_textandlog_query_parametersconnection parameters to allow the logging of the SQL text and bound parameter values, respectively. Both parameters default tofalse. - Added the
crl_download_max_sizeconnection parameter to control the maximum size (in bytes) of a CRL file downloaded during TLS certificate revocation checks. The default value is 20 MB. - Updated Curl to v8.19.0.
- Updated OpenSSL to v3.0.20.
Bug fixes¶
- None.
Version 3.6.0 (Mar 05, 2026)¶
New features and updates¶
-
Implemented richer
client_environmenttelemetry information to include on which environment the driver runs (such as Lambda, EC2, GCP, Azure VM, and so on) and whether the managed identity is enabled. -
Added support for workload identity federation authentication, including the following new connection parameters:
-
workload_identity_provider- Platform of the workload identity provider. Possible values include: AWS, AZURE, GCP, and OIDC. -
workload_identity_azure_resource- If the AZUREworkload_identity_provideris used, this parameter sets the resource that the driver should use to identify itself. -
workload_identity_impersonation_path- An array of strings that provides an identity chain to use when connecting to Snowflake. Array elements are either a full service account address or a service account’s unique ID.Impersonation works by following each array entry to obtain a token that allows authorization of the next service account. Each account in the identity chain needs permissions to impersonate the next account only. The final account in the list obtains your Snowflake connection token and uses it to connect to Snowflake.
This parameter is supported for AWS and Google Cloud workloads and only applies when
authenticator=WORKLOAD_IDENTITY.
-
-
Updated OpenSSL to 3.0.19.
-
Added support for multistatement queries.
Bug fixes¶
- None.
Version 3.5.0 (Feb 03, 2026)¶
New features and updates¶
- Added support for Red Hat Enterprise Linux (RHEL) 9.
- Deprecated CentOS 7 builds. Rocky 8/RHEL8 is now the minimum system version.
- Added a warning for HTTP usage in OAuth authentication flows.
- Set
LOCAL_APPLICATIONas a default for theclient_idandclient_secretfor the OAuth Authorization code flow. - Updated Curl to 8.16.0.
- Removed the workload identity federation (WIF) auto-detection mechanism.
- Added auto-detection of the application path and included it in the
CLIENT_ENVIRONMENTvariable. - Updated OpenSSL to 3.0.18.
Bug fixes¶
- Fixed the expired file lock on Linux for the Secure Storage.
- Removed the username requirement for the WIF authentication.