Skip to content

Releases: belgattitude/soluble-japha

Version 2.1.0

18 Jul 07:51
Compare
Choose a tag to compare

Added

  • Possibility to force usage of the php xml parser instead of the native dom xml, see #48

Version 2.0.0 - PHP7.1 only

29 Jun 18:07
Compare
Choose a tag to compare

This release requires PHP7.1 !!!

While major version have been incremented, the api between v1.4.0 and 2.0.0 has remained the same.
In other words no breaking changes should happen (BC preserved).

Changed

  • Support for PHP7.1 only declare(strict_types=1).

Fixed

  • Minor bugfix with integer cookie encoding due to strict_types

Version 1.4.5

29 May 10:58
Compare
Choose a tag to compare

Fixed

  • Fix call to PjbProxyClient::getInstance()->destroy() in favour of PjbProxyClient::unregisterIntance().

Version 1.4.4

28 May 13:08
Compare
Choose a tag to compare

Fixed

  • Ensure BrokenConnectionException if socket write/read fails (communication interrupted)
  • Minor fix and cleanup in SimpleHttpHandler channel creation.

Added

  • Parser tests added for invalid xml errors

Version 1.4.3

22 May 17:15
Compare
Choose a tag to compare

Fixed

  • Temporarily remove phpstan from require-dev. It will be re-added in 2.0 due
    to possible issues with plaform requirements.
    If you want to install, add to your require-dev: "phpstan/phpstan": "^0.7.0"
  • More typehints fixed or added
  • Unit tests autoloading is now fixed.

Version 1.4.2

18 May 20:55
Compare
Choose a tag to compare

Fixed

  • Fixed some invalid typehints thanks to phpstan !!!

Added

  • New composer scripts for checking source code.

Version 1.4.1

26 Apr 09:47
Compare
Choose a tag to compare

Added

  • Created Soluble\Japha\Bridge\Exception\BrokenConnectionException to mask
    internal pjb62 driver BrokenConnectionException. Documented in DriverInterface as well.

Fixed

  • Minor issue with $ba->isInstanceOf($object, $class) when second arg class is
    not a string neither an Interface\JavaObject. The exception Exception\InvalidArgumentException
    is now thrown (was masked before).

Improved

  • PHPDoc, improved documentation on Exception in DriveInterface and AbstractDriver.

  • PHPDoc, magic methods __call(), __get() and __set() nows inform
    about possible exception. Thanks @marcospassos for persisting on this.

Version 1.4.0

25 Apr 11:08
Compare
Choose a tag to compare

Added

  • Interfaces\JavaObject exposes magic methods __call(), __get() and __set()
    to better reflect that non-existing methods and properties will be delegated to
    the remote Java object.

Changed

  • Possible bc-break in undocumented feature. The DB\DriverManager::getJdbcDSN() has changed its signature
    and starts now with the driver name. An $options array allows to pass extra options.

Improved

  • Serialization with __sleep() and __wakeup() has preliminary test support

Version 1.3.1

23 Apr 18:46
Compare
Choose a tag to compare

This release has been tested with the latest official phpjavabridge 7.1.3.

Added

  • Pjb62\Driver added method setExitCode(int $code) from 7.1.3 upstream merge,
    requires PHP 7.1.3+ to be interpreted on the bridge side.

Version 1.3.0

23 Apr 00:04
Compare
Choose a tag to compare

Added

  • Interfaces\JavaObject now implements ArrayAccess
    the following code is possible without calling java methods:

    $hashMap = $ba->java('java.util.HashMap');
    $hashMap['key'] = 'cool';
    if (isset($hashMap['key']) {
       echo $hashMap['key']; 
       unset $hashMap['key'];
    }
  • Added convenience exception: NoSuchFieldException

Changed

  • Possible bc-break in undocumented Adapter option: java_default_timezone.
    It won't fall back to php default timezone if null. This feature is subject to caution.
  • Removed last func_get_args uses, replaced by PHP5.6 variadic notation in AbstractJava and JavaException.
  • Interfaces\JavaObject now implements IteratorAggregate, this behaviour was
    already working but not statically stated.

Documentation

  • Setting the default java timezone with TimeZone.setDefault() should be avoided
    as its value is global on the JVM.