Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit e4ff2f5

Browse files
committed
Prepare 0.1.4 release
1 parent 168f01a commit e4ff2f5

File tree

2 files changed

+45
-44
lines changed

2 files changed

+45
-44
lines changed

package.xml

+43-42
Original file line numberDiff line numberDiff line change
@@ -26,47 +26,51 @@
2626
<email>[email protected]</email>
2727
<active>yes</active>
2828
</lead>
29-
<date>2017-03-05</date>
30-
<time>20:48:11</time>
29+
<date>2017-04-22</date>
30+
<time>18:58:58</time>
3131
<version>
32-
<release>0.1.3</release>
33-
<api>0.1.3</api>
32+
<release>0.1.4</release>
33+
<api>0.1.4</api>
3434
</version>
3535
<stability>
3636
<release>stable</release>
3737
<api>stable</api>
3838
</stability>
3939
<license uri="https://opensource.org/licenses/mit">The MIT License (MIT)</license>
4040
<notes>
41-
This release adds low-level optimizations, simplify some internal methods and fix few bugs. For more details see
42-
change list below.
41+
This release adds low-level optimizations, simplify some internal methods and fix few bugs. For more details see change list below.
4342

44-
As of this release, V8 >= 5.9.5 required.
43+
As of this release, V8 >= 6.0.45 required.
4544

4645
* - BC-breaking or potentially BC-breaking changes
4746

4847
Changes to public API and other important changes which may affect end-user:
4948

50-
- * Replace V8\Isolate::GetCurrentContext with V8\Isolate::GetEnteredContext();
51-
- * Remove V8\ObjectValue::CreationContext(), use V8\ObjectValue::GetContext();
52-
- Add V8\PropertyCallbackInfo::ShouldThrowOnError() method;
53-
- Add V8\FunctionCallbackInfo::NewTarget() method;
54-
- V8\ReturnValue now explicitly holds isolate and context which could be accessed outside of calling context;
55-
- Fix potential problems with V8\FunctionCallbackInfo and V8\PropertyCallbackInfo when used outside calling scope;
56-
- Fix leak when V8\ScriptCompiler::CompileFunctionInContext() invoked with arguments and/or context extensions;
57-
- Fix segfault when abruptly exiting from isolate which entered multiple time or from multiple nested isolates;
58-
- Add V8\Exceptions\ValueException to stubs;
59-
- Remove $global_template and $global_object private props from V8\Context.
49+
- Raise libv8 required version to 6.0.45;
50+
- Add V8\Value::InstanceOf() method;
51+
- Add V8\ObjectValue::SetNativeDataProperty() method;
52+
- Add V8\PropertyFilter, V8\KeyCollectionMode and V8\IndexFilter enums;
53+
- Add property filtering support to V8\ObjectValue::Get{Property,OwnProperty}Names();
54+
- Consistently expose all well-known symbols on V8\SymbolValue;
55+
- Setting boolean props on StackFrame with valid type;
56+
- Remove non-working and non-supporting $attributes argument from V8\StringValue constructor in stubs;
57+
- * Add V8\ConstructorBehavior and support for it in V8\FunctionTemplate constructor;
58+
- * Add signature support in V8\FunctionTemplate constructor via $receiver;
59+
- * Add signature support to Template:SetNativeDataProperty() and ObjectTemplate::SetAccessor() via $receiver;
60+
- * Remove require $isolate parameter from V8\Value::TypeOf();
61+
- * Remove deprecated V8\Context::EstimatedSize() method;
62+
- * Remove deprecated V8\StackTrace\StackTraceOptions;
63+
- * Remove deprecated V8\StackTrace::AsArray();
64+
- * Require Context explicitly in V8\Isolate::ThrowException();
65+
- * Rename V8\Exceptions\GenericException to V8\Exceptions\Exception;
66+
- * Rename V8\Exceptions\AbstractResourceLimitException to V8\Exceptions\ResourceLimitException;
67+
- internal: Check whether returned context is empty in V8\Isolate\GetEnteredContext() instead of checking InContext();
6068
</notes>
6169
<contents>
6270
<dir name="/">
6371
<!-- begin files list -->
6472
<file name="src/php_v8_a.cc" role="src" />
6573
<file name="src/php_v8_a.h" role="src" />
66-
<file name="src/php_v8_access_control.cc" role="src" />
67-
<file name="src/php_v8_access_control.h" role="src" />
68-
<file name="src/php_v8_access_type.cc" role="src" />
69-
<file name="src/php_v8_access_type.h" role="src" />
7074
<file name="src/php_v8_array.cc" role="src" />
7175
<file name="src/php_v8_array.h" role="src" />
7276
<file name="src/php_v8_boolean.cc" role="src" />
@@ -79,14 +83,14 @@
7983
<file name="src/php_v8_callback_info.h" role="src" />
8084
<file name="src/php_v8_callbacks.cc" role="src" />
8185
<file name="src/php_v8_callbacks.h" role="src" />
82-
<file name="src/php_v8_compile_options.cc" role="src" />
83-
<file name="src/php_v8_compile_options.h" role="src" />
8486
<file name="src/php_v8_context.cc" role="src" />
8587
<file name="src/php_v8_context.h" role="src" />
8688
<file name="src/php_v8_data.cc" role="src" />
8789
<file name="src/php_v8_data.h" role="src" />
8890
<file name="src/php_v8_date.cc" role="src" />
8991
<file name="src/php_v8_date.h" role="src" />
92+
<file name="src/php_v8_enums.cc" role="src" />
93+
<file name="src/php_v8_enums.h" role="src" />
9094
<file name="src/php_v8_exception.cc" role="src" />
9195
<file name="src/php_v8_exception.h" role="src" />
9296
<file name="src/php_v8_exceptions.cc" role="src" />
@@ -107,8 +111,6 @@
107111
<file name="src/php_v8_int32.h" role="src" />
108112
<file name="src/php_v8_integer.cc" role="src" />
109113
<file name="src/php_v8_integer.h" role="src" />
110-
<file name="src/php_v8_integrity_level.cc" role="src" />
111-
<file name="src/php_v8_integrity_level.h" role="src" />
112114
<file name="src/php_v8_isolate.cc" role="src" />
113115
<file name="src/php_v8_isolate.h" role="src" />
114116
<file name="src/php_v8_isolate_limits.cc" role="src" />
@@ -133,12 +135,8 @@
133135
<file name="src/php_v8_object_template.h" role="src" />
134136
<file name="src/php_v8_primitive.cc" role="src" />
135137
<file name="src/php_v8_primitive.h" role="src" />
136-
<file name="src/php_v8_property_attribute.cc" role="src" />
137-
<file name="src/php_v8_property_attribute.h" role="src" />
138138
<file name="src/php_v8_property_callback_info.cc" role="src" />
139139
<file name="src/php_v8_property_callback_info.h" role="src" />
140-
<file name="src/php_v8_property_handler_flags.cc" role="src" />
141-
<file name="src/php_v8_property_handler_flags.h" role="src" />
142140
<file name="src/php_v8_regexp.cc" role="src" />
143141
<file name="src/php_v8_regexp.h" role="src" />
144142
<file name="src/php_v8_return_value.cc" role="src" />
@@ -188,6 +186,7 @@
188186
<file name="tests/.v8-helpers.php" role="test" />
189187
<file name="tests/001-verify-method-parameters-type.phpt" role="test" />
190188
<file name="tests/001.phpt" role="test" />
189+
<file name="tests/002-enums.phpt" role="test" />
191190
<file name="tests/003-V8ObjectTemplate_recursive_chain.phpt" role="test" />
192191
<file name="tests/003-V8ObjectTemplate_recursive_global.phpt" role="test" />
193192
<file name="tests/003-V8ObjectTemplate_recursive_self.phpt" role="test" />
@@ -197,15 +196,14 @@
197196
<file name="tests/005-V8FunctionTemplate_external_memory.phpt" role="test" />
198197
<file name="tests/005-V8ObjectTemplate_external_memory.phpt" role="test" />
199198
<file name="tests/005-V8ObjectValue_external_memory.phpt" role="test" />
200-
<file name="tests/V8AccessControl.phpt" role="test" />
201199
<file name="tests/V8ArrayObject.phpt" role="test" />
202200
<file name="tests/V8ArrayObject_Length.phpt" role="test" />
203201
<file name="tests/V8Boolean.phpt" role="test" />
204202
<file name="tests/V8BooleanObject.phpt" role="test" />
205203
<file name="tests/V8CachedData.phpt" role="test" />
206-
<file name="tests/V8CompileOptions.phpt" role="test" />
207204
<file name="tests/V8Context.phpt" role="test" />
208205
<file name="tests/V8Context_GlobalObject.phpt" role="test" />
206+
<file name="tests/V8Context_SetSecurityToken.phpt" role="test" />
209207
<file name="tests/V8Context_invalid_ctor_arg_type.phpt" role="test" />
210208
<file name="tests/V8Context_reference_lifecycle.phpt" role="test" />
211209
<file name="tests/V8Context_weakness.phpt" role="test" />
@@ -223,6 +221,7 @@
223221
<file name="tests/V8FunctionObject.phpt" role="test" />
224222
<file name="tests/V8FunctionObject_Call.phpt" role="test" />
225223
<file name="tests/V8FunctionObject_Call_bad_args.phpt" role="test" />
224+
<file name="tests/V8FunctionObject_constructor_behavior.phpt" role="test" />
226225
<file name="tests/V8FunctionObject_die.phpt" role="test" />
227226
<file name="tests/V8FunctionObject_die_different_isolates.phpt" role="test" />
228227
<file name="tests/V8FunctionObject_die_nested.phpt" role="test" />
@@ -231,6 +230,8 @@
231230
<file name="tests/V8FunctionTemplate_GetFunction.phpt" role="test" />
232231
<file name="tests/V8FunctionTemplate_SetCallHandler.phpt" role="test" />
233232
<file name="tests/V8FunctionTemplate_callback_weakness.phpt" role="test" />
233+
<file name="tests/V8FunctionTemplate_constructor_behavior.phpt" role="test" />
234+
<file name="tests/V8FunctionTemplate_constructor_receiver.phpt" role="test" />
234235
<file name="tests/V8FunctionTemplate_exception_in_php.phpt" role="test" />
235236
<file name="tests/V8FunctionTemplate_invalid_ctor_arg_type.phpt" role="test" />
236237
<file name="tests/V8FunctionTemplate_require_implementation.phpt" role="test" />
@@ -239,8 +240,8 @@
239240
<file name="tests/V8IndexedPropertyHandlerConfiguration.phpt" role="test" />
240241
<file name="tests/V8Int32Value.phpt" role="test" />
241242
<file name="tests/V8IntegerValue.phpt" role="test" />
242-
<file name="tests/V8IntegrityLevel.phpt" role="test" />
243243
<file name="tests/V8Isolate.phpt" role="test" />
244+
<file name="tests/V8Isolate_GetEnteredContext.phpt" role="test" />
244245
<file name="tests/V8Isolate_IsDead.phpt" role="test" />
245246
<file name="tests/V8Isolate_IsInUse.phpt" role="test" />
246247
<file name="tests/V8Isolate_ThrowException.phpt" role="test" />
@@ -262,26 +263,24 @@
262263
<file name="tests/V8NumberObject.phpt" role="test" />
263264
<file name="tests/V8NumberValue.phpt" role="test" />
264265
<file name="tests/V8ObjectTemplate.phpt" role="test" />
265-
<file name="tests/V8ObjectTemplate_MarkAsUndetectable.phpt" role="test" />
266266
<file name="tests/V8ObjectTemplate_Set.phpt" role="test" />
267-
<file name="tests/V8ObjectTemplate_SetAccessCheckCallback.phpt" role="test" />
268-
<file name="tests/V8ObjectTemplate_SetAccessCheckCallback_func_args.phpt" role="test" />
267+
<file name="tests/V8ObjectTemplate_SetAccessor_receiver.phpt" role="test" />
269268
<file name="tests/V8ObjectTemplate_SetCallAsFunctionHandler.phpt" role="test" />
270269
<file name="tests/V8ObjectTemplate_SetHandlerForIndexedProperty.phpt" role="test" />
271270
<file name="tests/V8ObjectTemplate_SetHandlerForNamedProperty.phpt" role="test" />
272271
<file name="tests/V8ObjectTemplate_SetHandler_both.phpt" role="test" />
272+
<file name="tests/V8ObjectTemplate_SetNativeDataProperty.phpt" role="test" />
273273
<file name="tests/V8ObjectTemplate_invalid_ctor_arg_type.phpt" role="test" />
274274
<file name="tests/V8ObjectValue.phpt" role="test" />
275275
<file name="tests/V8ObjectValue_Get.phpt" role="test" />
276276
<file name="tests/V8ObjectValue_IsArgumentsObject.phpt" role="test" />
277277
<file name="tests/V8ObjectValue_IsNativeError.phpt" role="test" />
278278
<file name="tests/V8ObjectValue_SetAccessor.phpt" role="test" />
279279
<file name="tests/V8ObjectValue_SetIntegrityLevel.phpt" role="test" />
280+
<file name="tests/V8ObjectValue_SetNativeDataProperty.phpt" role="test" />
281+
<file name="tests/V8ObjectValue_SetNativeDataProperty_from_template.phpt" role="test" />
280282
<file name="tests/V8PrimitiveValue.phpt" role="test" />
281-
<file name="tests/V8PropertyAttribute.phpt" role="test" />
282283
<file name="tests/V8PropertyCallbackInfo.phpt" role="test" />
283-
<file name="tests/V8PropertyHandlerFlags.phpt" role="test" />
284-
<file name="tests/V8RegExpFlags.phpt" role="test" />
285284
<file name="tests/V8RegExpObject.phpt" role="test" />
286285
<file name="tests/V8ReturnValue.phpt" role="test" />
287286
<file name="tests/V8ReturnValue_context.phpt" role="test" />
@@ -301,7 +300,6 @@
301300
<file name="tests/V8Source.phpt" role="test" />
302301
<file name="tests/V8StackFrame.phpt" role="test" />
303302
<file name="tests/V8StackTrace.phpt" role="test" />
304-
<file name="tests/V8StackTraceOptions.phpt" role="test" />
305303
<file name="tests/V8StackTrace_CurrentStackTrace.phpt" role="test" />
306304
<file name="tests/V8StartupData_CreateFromSource.phpt" role="test" />
307305
<file name="tests/V8StringObject.phpt" role="test" />
@@ -327,13 +325,14 @@
327325
<file name="stubs/src/BooleanObject.php" role="doc" />
328326
<file name="stubs/src/BooleanValue.php" role="doc" />
329327
<file name="stubs/src/CallbackInfo.php" role="doc" />
328+
<file name="stubs/src/ConstructorBehavior.php" role="doc" />
330329
<file name="stubs/src/Context.php" role="doc" />
331330
<file name="stubs/src/Data.php" role="doc" />
332331
<file name="stubs/src/DateObject.php" role="doc" />
333332
<file name="stubs/src/Exception.php" role="doc" />
334-
<file name="stubs/src/Exceptions/AbstractResourceLimitException.php" role="doc" />
335-
<file name="stubs/src/Exceptions/GenericException.php" role="doc" />
333+
<file name="stubs/src/Exceptions/Exception.php" role="doc" />
336334
<file name="stubs/src/Exceptions/MemoryLimitException.php" role="doc" />
335+
<file name="stubs/src/Exceptions/ResourceLimitException.php" role="doc" />
337336
<file name="stubs/src/Exceptions/TerminationException.php" role="doc" />
338337
<file name="stubs/src/Exceptions/TimeLimitException.php" role="doc" />
339338
<file name="stubs/src/Exceptions/TryCatchException.php" role="doc" />
@@ -342,11 +341,13 @@
342341
<file name="stubs/src/FunctionObject.php" role="doc" />
343342
<file name="stubs/src/FunctionTemplate.php" role="doc" />
344343
<file name="stubs/src/HeapStatistics.php" role="doc" />
344+
<file name="stubs/src/IndexFilter.php" role="doc" />
345345
<file name="stubs/src/IndexedPropertyHandlerConfiguration.php" role="doc" />
346346
<file name="stubs/src/Int32Value.php" role="doc" />
347347
<file name="stubs/src/IntegerValue.php" role="doc" />
348348
<file name="stubs/src/IntegrityLevel.php" role="doc" />
349349
<file name="stubs/src/Isolate.php" role="doc" />
350+
<file name="stubs/src/KeyCollectionMode.php" role="doc" />
350351
<file name="stubs/src/MapObject.php" role="doc" />
351352
<file name="stubs/src/Message.php" role="doc" />
352353
<file name="stubs/src/NameValue.php" role="doc" />
@@ -359,6 +360,7 @@
359360
<file name="stubs/src/PrimitiveValue.php" role="doc" />
360361
<file name="stubs/src/PropertyAttribute.php" role="doc" />
361362
<file name="stubs/src/PropertyCallbackInfo.php" role="doc" />
363+
<file name="stubs/src/PropertyFilter.php" role="doc" />
362364
<file name="stubs/src/PropertyHandlerFlags.php" role="doc" />
363365
<file name="stubs/src/RegExp/Flags.php" role="doc" />
364366
<file name="stubs/src/RegExpObject.php" role="doc" />
@@ -373,7 +375,6 @@
373375
<file name="stubs/src/SetObject.php" role="doc" />
374376
<file name="stubs/src/StackFrame.php" role="doc" />
375377
<file name="stubs/src/StackTrace.php" role="doc" />
376-
<file name="stubs/src/StackTrace/StackTraceOptions.php" role="doc" />
377378
<file name="stubs/src/StartupData.php" role="doc" />
378379
<file name="stubs/src/StringObject.php" role="doc" />
379380
<file name="stubs/src/StringValue.php" role="doc" />

php_v8.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ extern zend_module_entry php_v8_module_entry;
3636
#endif
3737

3838
#ifndef PHP_V8_VERSION
39-
#define PHP_V8_VERSION "0.2.0"
39+
#define PHP_V8_VERSION "0.1.4"
4040
#endif
4141

4242
#ifndef PHP_V8_REVISION
43-
#define PHP_V8_REVISION "dev"
43+
#define PHP_V8_REVISION "release"
4444
#endif
4545

4646

0 commit comments

Comments
 (0)