php-v8 v0.1.3 Release Notes
Release Date: 2017-03-05 // about 7 years ago-
๐ This release adds low-level optimizations, simplify some internal methods and fix few bugs. For more details see change list below.
๐ As of this release, V8 >= 5.9.5 required.
*
- BC-breaking or potentially BC-breaking changes๐ Changes to public API and other important changes which may affect end-user:
*
ReplaceV8\Isolate::GetCurrentContext
withV8\Isolate::GetEnteredContext()
;- ๐
*
RemoveV8\ObjectValue::CreationContext()
, useV8\ObjectValue::GetContext()
; - โ Add
V8\PropertyCallbackInfo::ShouldThrowOnError()
method; - โ Add
V8\FunctionCallbackInfo::NewTarget()
method; V8\ReturnValue
now explicitly holds isolate and context which could be accessed outside of calling context, thoughReturnValue::{Get,Set}
could be accessed only within calling context as before;- ๐ Fix potential problems with
V8\FunctionCallbackInfo
andV8\PropertyCallbackInfo
, now they are fully build, properly stores owning isolate and context and could be safely used outside calling scope; - ๐ Fix leak when
V8\ScriptCompiler::CompileFunctionInContext()
invoked with arguments or arguments and context extensions; - ๐ Fix segfault under when abruptly exiting (
die()
,exit()
, uncaught exception) from isolate which entered multiple time or from multiple nested isolates (quite rare use case). - โ Add
V8\Exceptions\ValueException
to stubs. It support was in extension for ages but for some reason it was missed from stubs. - Remove
$global_template
and$global_object
private props fromV8\Context
. They were never exposed to end-user anyway.