Releases: cyjoelchen/php-sweph
Make tests less pedantic.
This is a minor release that uses floating-point truncation throughout the tests to account for precision discrepancies across different architectures. This release also drops test support for versions of PHP < 7.4, although the extension should continue to work just fine down to PHP 7.0.
Refs:
Support PHP 8.2.
This release adds PHP 8.2 support, which was already working. The test matrix now includes it, however. Additionally, the precision tests have been modified to use floating-point truncation instead of rounding in order to create more predictable results. This way when/if the SE library is updated with minor calculation changes, these higher-level tests shouldn't be as easily impacted.
Update to SwissEphemeris 2.10.03.
This release of the extension includes the maintenance update of the Swiss Ephemeris library to 2.10.03. For change notes related to the library's release, please see:
https://github.com/aloistr/swisseph/releases/tag/v2.10.03
Additionally, the missing SE_SPLIT_DEG_KEEP_DEG
constant was added to the extension in this release.
Minor Bug Fix Release.
Changes introduced in #86 caused build-se
to fail if building on PHP < 8.1. This release fixes that build bug and only applies to anyone using build-se
, which is not a requirement for using this extension.
Support PHP 8.1.
This release officially supports PHP 8.1. The extension was (mostly) working previously, except that swe_set_ephe_path()
was causing deprecation warnings if null
was passed instead of a string. This has been fixed and PHP 8.1 is now part of the test actions.
Thank you to @nosilentesdblog for raising this issue:
Maintenance Release.
Implements additional return values in swe_revjul()
:
- Integer hours, minutes & seconds.
- Decimal seconds.
Ex.
array(8) {
["year"]=>
int(2002)
["month"]=>
int(1)
["day"]=>
int(1)
["hour"]=>
float(0)
["ihour"]=>
int(0)
["imin"]=>
int(0)
["isec"]=>
int(0)
["dsec"]=>
float(5.0E-5)
}
Defaults calendar flag parameter to SE_GREG_CAL
in:
swe_revjul()
swe_julday()
Refs: #77
Maintenance Release.
Fixes incorrect function call per: #73
Maintenance Release.
Bug fix release, per: #71
Thank you to @astrorigin & @aloistr for discovery and contribution.
Maintenance Release.
Bug fix release, per: #69
Thank you to @astrorigin & @aloistr for discovery and contribution.
Maintenance Release.
This is a cleanup release that adds rounding for more predictable tests, resolving #66:
- FAIL Basic test [tests/swe_azalt_refrac.phpt]
- FAIL Basic test [tests/swe_fixstar.phpt]
Additionally, swe_fixstar()
and swe_fixstar_ut()
now correctly ignore the SEFLG_SPEED
flag if it's not explicitly passed.