Skip to content

Releases: CopernicaMarketingSoftware/PHP-JS

PHP-JS 2.0.0

18 May 17:37
956eaa7

Choose a tag to compare

PHP-JS 2.0.0

This is a major new release of php-js, built on a much newer version of the V8 engine. The previous 1.4.x series was based on a V8 version over a decade old. Upgrading to a modern V8 required a near-complete rewrite of the codebase.

Highlights

Array conversion support
JavaScript arrays are now properly converted to PHP arrays.

Improved iterator support
Iterators work more reliably and consistently across language boundaries.

Better object reuse detection
Improved internal logic avoids returning duplicate PHP representations of the same JS object.

Stronger context isolation
Each JS\Context is better encapsulated and separated from others.

New JS\Script class
Introduced for better handling of compiled scripts.

Upgrade notes

Although we've made a significant internal overhaul to support the latest V8 engine, we've done our best to maintain compatibility with existing usage patterns. That said, due to the size of the upgrade, some scripts may require minor adjustments. Please test thoroughly before rolling out to production.

PHP-JS 1.4.6

14 Aug 12:43
320457d

Choose a tag to compare

  • Fixed segmentation fault when circular references in PHP variables were used

PHP-JS 1.4.5

03 Feb 12:05

Choose a tag to compare

PHP-JS 1.4.5 Pre-release
Pre-release
  • Catch exceptions from PHP space when setting properties on object

PHP-JS 1.4.4

27 Sep 13:26

Choose a tag to compare

  • fixed race condition in platform. It was possible that the worker thread would not be notified when we stopped the platform.

PHP-JS 1.4.3

18 Apr 08:12

Choose a tag to compare

  • Fixed a bug where occasionally evaluate() would last the full timeout even though execution already finished.

PHP-JS 1.4.2

13 Apr 12:53

Choose a tag to compare

  • Adding a timeout no longer causes evaluate() to crash if execution finishes before the timeout
  • Fixed crash if evaluate() times out.
  • Fixed segfault that occurred only when a timeout was set.

PHP-JS 1.4.1

27 Feb 13:40

Choose a tag to compare

Fix segfault when assigning 'null' value to the context.

PHP-JS 1.4.0

22 Sep 11:25

Choose a tag to compare

  • Updated PHP-JS to be compatible with latest v8
  • Updated PHP-JS to use the new PHP-CPP extension API and made booleans work correctly for PHP 7
  • Got rid of the DelayedTask as it is no longer needed

PHP-JS 1.3.0

15 Apr 11:54

Choose a tag to compare

  • Compatible with newer v8 version (5.2)
  • Delayed tasks are executed in the correct thread (prevents deadlock)

PHP-JS 1.2.0

17 Nov 13:23

Choose a tag to compare

  • Dispose of the isolate and shut down the platform properly on PHP engine shutdown
  • Manually track external references, as v8 does not appear capable of freeing externals in a timely manner - not even if you shutdown the entire v8 platform