Skip to content

Releases: cyjoelchen/php-sweph

Make tests less pedantic.

18 Dec 00:44
Compare
Choose a tag to compare

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.

29 May 17:04
Compare
Choose a tag to compare

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.

06 Sep 17:26
aa7f33a
Compare
Choose a tag to compare

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.

02 Aug 17:38
Compare
Choose a tag to compare

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.

27 Jul 20:40
2558086
Compare
Choose a tag to compare

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.

12 Oct 20:09
Compare
Choose a tag to compare

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.

20 Aug 23:58
a3dd522
Compare
Choose a tag to compare

Fixes incorrect function call per: #73

Maintenance Release.

19 Aug 02:29
cc3db37
Compare
Choose a tag to compare

Bug fix release, per: #71

Thank you to @astrorigin & @aloistr for discovery and contribution.

Maintenance Release.

15 Aug 16:43
2a9fb69
Compare
Choose a tag to compare

Bug fix release, per: #69

Thank you to @astrorigin & @aloistr for discovery and contribution.

Maintenance Release.

13 Aug 23:30
2ffae7c
Compare
Choose a tag to compare

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.