Skip to content

Releases: phpv8/v8js

Version 2.1.1

23 Jun 19:59
1999c70
Compare
Choose a tag to compare
  • support PHP 7.3
  • support V8 7.x (now V8 > 6.9 is required)
  • fix module path normaliser (issue #349)
  • fix export bug w/ multiple derived classes (issue #410)

This release also is available at http://pecl.php.net/package/v8js

Version 2.1.0

07 Jan 12:27
0966339
Compare
Choose a tag to compare
  • emit warning when compiling against V8 without untrusted code mitigations
  • support native modules (i.e. expose PHP objects via require('...'))

This release also is available at http://pecl.php.net/package/v8js

Version 2.0.0

26 Nov 14:23
2.0.0
773c119
Compare
Choose a tag to compare

Backward-incompatible changes

  • normal script execution shares its context with modules now (like on Node.js)
  • expose a "global" symbol that references the global scope (like on Node.js)
  • modules may return arbitrary values (not just objects; now like on Node.js)
  • pick up exports from "module.exports" also (like on Node.js)
  • handle exceptions thrown in module loader/normaliser like in other PHP scopes called from JS
    (i.e. by default terminate execution, optionally propagate to JS side)

V8Js' modules vastly behave like Node.js modules now \o/

  • php.ini option v8js.compat_php_exceptions has been removed

Deprecations

  • V8Js::registerExtension and V8Js::getExtensions are now deprecated, use snapshots instead
  • likewise passing $extensions to V8Js::__construct
  • V8Js::getPendingException and and V8Js::clearPendingException are deprecated, use try/catch
  • likewise passing $report_uncaught_exceptions !== true to V8Js::__construct

Improvements

  • add documentation on heap snapshots

Bugfixes

  • fix build on Windows with VS2017 (thanks @Jan-E)
  • fix enumeration of methods on V8 6.3

This release also is available at http://pecl.php.net/package/v8js

Version 1.4.1

12 Aug 13:03
4c71da8
Compare
Choose a tag to compare

This release targets PHP 7.0 and newer; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Versioning of v8js follows semver, it is not expected that this release breaks anything.

Bugfixes

  • fix build against V8 version 6.0 (#313)
  • don't clean properties hash while it is iterated (#316)
  • fix build against PHP 7.2

Refactorings

  • omit usage of deprecated V8 API (#311)

This release also is available at http://pecl.php.net/package/v8js

1.4.0

12 Aug 13:05
98c2a6b
Compare
Choose a tag to compare

This release targets PHP 7.0 and newer; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Versioning of v8js follows semver, it is not expected that this release breaks anything.

New Feature

Correctly initialize V8's ICU component (as needed by recent versions)

  • path to libv8 library is now baked into the library to find icudtl.dat file
  • if icudtl.dat file is moved after compile time, set v8js.icudtl_dat_path php.ini variable

This release also is available at http://pecl.php.net/package/v8js

Version 1.3.6

16 Mar 20:25
1.3.6
272e9ac
Compare
Choose a tag to compare

This release targets PHP 7.0 and newer; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Versioning of v8js follows semver, it is not expected that this release breaks anything.

Bugfixes

  • fix compilation with GCC7 (include necessary headers)
  • fix build with recent V8 5.9 versions (libv8_libplatform not found)
  • adapt exception_start_column.phpt test to changed output of recent V8 5.9 versions
  • fix compilation with PHP 7.1.3

Refactorings

  • drop TSRM stuff unneeded since PHP 7
  • remove unused variables
  • make memory_limit a size_t internally (and throw if negative values are provided on PHP interface)

This release also is available at http://pecl.php.net/package/v8js

Version 1.3.5

11 Mar 20:12
Compare
Choose a tag to compare

This release targets PHP 7.0 and newer; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Versioning of v8js follows semver, it is not expected that this release breaks anything.

Bug Fixes

  • Fix long vs. zend_long issues on x64 Windows

This release also is available at http://pecl.php.net/package/v8js

Version 1.3.4

11 Mar 20:11
Compare
Choose a tag to compare

This release targets PHP 7.0; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Versioning of v8js follows semver, it is not expected that this release breaks anything.

Bug Fixes

  • Bugfix: Reset fatal_error_abort on RSHUTDOWN
  • Improve auto configuration (V8 detection)
  • Improve build instructions on Linux & Windows

This release also is available at http://pecl.php.net/package/v8js

Version 1.3.3

01 Nov 16:50
Compare
Choose a tag to compare

This release targets PHP 7.0; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Bug Fixes

  • fix detection of libv8_libbase.a during configuration
  • fix license URIs in package.xml

This release also is available at http://pecl.php.net/package/v8js

Version 1.3.2

04 Sep 15:04
Compare
Choose a tag to compare

This release targets PHP 7.0; if you're looking for PHP 5.x releases, pick V8Js 0.6.4

Bug Fixes

  • fix reference counting issue (and hence use-after-free memory error)
  • fix another use-after-free issue with registerExtension
  • fix build against PHP 7.1 (beta)
  • correctly export reference-type variables to JavaScript

This release also is available at http://pecl.php.net/package/v8js