You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2026/05/12 21:21:00 UTC
[jira] [Created] (THRIFT-5988) PHP 8.1 upgrade follow-up: float constants, README version, and TSSLServerSocket API compatibility
Jens Geyer created THRIFT-5988:
----------------------------------
Summary: PHP 8.1 upgrade follow-up: float constants, README version, and TSSLServerSocket API compatibility
Key: THRIFT-5988
URL: https://issues.apache.org/jira/browse/THRIFT-5988
Project: Thrift
Issue Type: Improvement
Components: PHP - Library
Reporter: Jens Geyer
Three housekeeping items left unaddressed when the PHP minimum version was raised to 8.1.
h3. BoundaryValuesTest — replace magic float literals with named constants
The test file contained the comment:
{quote}
// TODO: replace literals with PHP_FLOAT_MAX/MIN/EPSILON when PHP 7.1 support is dropped (available since PHP 7.2)
{quote}
The magic literals {{1.7976931348623158e+308}}, {{2.2250738585072014e-308}}, and {{2.2204460492503131e-16}} should be replaced with {{PHP_FLOAT_MAX}}, {{PHP_FLOAT_MIN}}, and {{PHP_FLOAT_EPSILON}} respectively, and the TODO comment removed.
h3. lib/php/README.md — minimum PHP version still states 7.1
The opening paragraph of the PHP library README reads "Thrift requires PHP 7.1". This is rendered on the public Apache Thrift website. It should be updated to 8.1 to match the actual minimum.
h3. TSSLServerSocket — public getSSLHost() removed without a deprecation period
{{getSSLHost(string $host): string}} was a public method callable by subclasses and external code. It was silently replaced by {{private ensureSslHostPrefix()}} with no deprecation notice, breaking any existing caller at runtime. A {{@deprecated}} public shim should be restored that delegates to the private method and documents that it will be removed in a future release.
See also: https://github.com/apache/thrift/pull/3468
--
This message was sent by Atlassian Jira
(v8.20.10#820010)