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

Commit 62f0085

Browse files
committed
Prepare 0.1.3 release
1 parent ef2f9f3 commit 62f0085

File tree

3 files changed

+50
-30
lines changed

3 files changed

+50
-30
lines changed

package.xml

+27-28
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
~ http://opensource.org/licenses/MIT
1212
-->
1313

14-
<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.9.4" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
14+
<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15+
packagerversion="1.9.4" version="2.0"
16+
xsi:schemaLocation="http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
1517
<name>v8</name>
1618
<channel>pecl.php.net</channel>
1719
<summary>V8 JavaScript engine API for PHP</summary>
@@ -24,43 +26,37 @@
2426
<email>[email protected]</email>
2527
<active>yes</active>
2628
</lead>
27-
<date>2017-02-18</date>
28-
<time>14:14:21</time>
29+
<date>2017-03-05</date>
30+
<time>20:48:11</time>
2931
<version>
30-
<release>0.1.2</release>
31-
<api>0.1.2</api>
32+
<release>0.1.3</release>
33+
<api>0.1.3</api>
3234
</version>
3335
<stability>
3436
<release>stable</release>
3537
<api>stable</api>
3638
</stability>
3739
<license uri="https://opensource.org/licenses/mit">The MIT License (MIT)</license>
3840
<notes>
39-
This release adds script compilation and caching. Also more new methods added and some internal logic refactored.
40-
See detailed changes below.
41+
This release adds low-level optimizations, simplify some internal methods and fix few bugs. For more details see
42+
change list below.
4143

42-
As of this release, V8 >= 5.8.168 required.
44+
As of this release, V8 >= 5.9.5 required.
4345

44-
* - BC-breaking or potentially BC-breaking changes.
46+
* - BC-breaking or potentially BC-breaking changes
4547

4648
Changes to public API and other important changes which may affect end-user:
4749

48-
- * Add $is_wasm and $is_module options to V8\ScriptOriginOptions and V8\ScriptOrigin;
49-
- * Remove non-standard V8\Scrip::{getSource,getOrigin};
50-
- * Remove V8\ObjectValue::{Get,Set,Has,Delete,CreateDataProperty}Indexed methods;
51-
- * Remove non-working V8\Context extensions support;
52-
- * Handle V8\IntegerValue sub-types when returning values from V8, fixes #19;
53-
- Add V8\UnboundScript class;
54-
- Add V8\ScriptCompiler\CachedData class;
55-
- Add V8\ScriptCompiler\CompileOptions class;
56-
- Add V8\ScriptCompiler\Source class;
57-
- Add V8\ScriptCompiler;
58-
- Add V8\SymbolValue::GetToPrimitive() method;
59-
- Add V8\Value::IsNullOrUndefinedl() method;
60-
- Add more V8\Value::Is*() methods;
61-
- Add V8\MapObject;
62-
- Add V8\SetObject;
63-
- Fix obj and func templates external memory adjusting.
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.
6460
</notes>
6561
<contents>
6662
<dir name="/">
@@ -211,6 +207,7 @@
211207
<file name="tests/V8Context.phpt" role="test" />
212208
<file name="tests/V8Context_GlobalObject.phpt" role="test" />
213209
<file name="tests/V8Context_invalid_ctor_arg_type.phpt" role="test" />
210+
<file name="tests/V8Context_reference_lifecycle.phpt" role="test" />
214211
<file name="tests/V8Context_weakness.phpt" role="test" />
215212
<file name="tests/V8Data.phpt" role="test" />
216213
<file name="tests/V8DateObject.phpt" role="test" />
@@ -227,6 +224,8 @@
227224
<file name="tests/V8FunctionObject_Call.phpt" role="test" />
228225
<file name="tests/V8FunctionObject_Call_bad_args.phpt" role="test" />
229226
<file name="tests/V8FunctionObject_die.phpt" role="test" />
227+
<file name="tests/V8FunctionObject_die_different_isolates.phpt" role="test" />
228+
<file name="tests/V8FunctionObject_die_nested.phpt" role="test" />
230229
<file name="tests/V8FunctionObject_weakness_multiple.phpt" role="test" />
231230
<file name="tests/V8FunctionTemplate.phpt" role="test" />
232231
<file name="tests/V8FunctionTemplate_GetFunction.phpt" role="test" />
@@ -257,8 +256,6 @@
257256
<file name="tests/V8Isolate_snapshot_support.phpt" role="test" />
258257
<file name="tests/V8MapObject.phpt" role="test" />
259258
<file name="tests/V8Message.phpt" role="test" />
260-
<file name="tests/V8Module.sh" role="test" />
261-
<file name="tests/V8Module_oom.sh" role="test" />
262259
<file name="tests/V8NameValue.phpt" role="test" />
263260
<file name="tests/V8NamedPropertyHandlerConfiguration.phpt" role="test" />
264261
<file name="tests/V8NullValue.phpt" role="test" />
@@ -282,6 +279,7 @@
282279
<file name="tests/V8ObjectValue_SetIntegrityLevel.phpt" role="test" />
283280
<file name="tests/V8PrimitiveValue.phpt" role="test" />
284281
<file name="tests/V8PropertyAttribute.phpt" role="test" />
282+
<file name="tests/V8PropertyCallbackInfo.phpt" role="test" />
285283
<file name="tests/V8PropertyHandlerFlags.phpt" role="test" />
286284
<file name="tests/V8RegExpFlags.phpt" role="test" />
287285
<file name="tests/V8RegExpObject.phpt" role="test" />
@@ -291,12 +289,12 @@
291289
<file name="tests/V8ScriptCompiler.phpt" role="test" />
292290
<file name="tests/V8ScriptCompiler_Compile.phpt" role="test" />
293291
<file name="tests/V8ScriptCompiler_CompileFunctionInContext.phpt" role="test" />
294-
<file name="tests/V8ScriptCompiler_CompileModule.sh" role="test" />
295292
<file name="tests/V8ScriptCompiler_CompileUnbound.phpt" role="test" />
296293
<file name="tests/V8ScriptOrigin.phpt" role="test" />
297294
<file name="tests/V8ScriptOriginOptions.phpt" role="test" />
298295
<file name="tests/V8Script_Run.phpt" role="test" />
299296
<file name="tests/V8Script_Run_out_of_memory.phpt" role="test" />
297+
<file name="tests/V8Script_Run_uncaught_exception.phpt" role="test" />
300298
<file name="tests/V8Script_exit_during_script_execution.phpt" role="test" />
301299
<file name="tests/V8Script_terminate_script_execution.phpt" role="test" />
302300
<file name="tests/V8SetObject.phpt" role="test" />
@@ -339,6 +337,7 @@
339337
<file name="stubs/src/Exceptions/TerminationException.php" role="doc" />
340338
<file name="stubs/src/Exceptions/TimeLimitException.php" role="doc" />
341339
<file name="stubs/src/Exceptions/TryCatchException.php" role="doc" />
340+
<file name="stubs/src/Exceptions/ValueException.php" role="doc" />
342341
<file name="stubs/src/FunctionCallbackInfo.php" role="doc" />
343342
<file name="stubs/src/FunctionObject.php" role="doc" />
344343
<file name="stubs/src/FunctionTemplate.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.3"
4040
#endif
4141

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

4646

scripts/refresh-package-xml.php

+21
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
'README.md' => 'doc',
2828
];
2929

30+
$rules = [
31+
'test' => [
32+
'/\.phpt$/',
33+
'/^\..+\.php$/',
34+
],
35+
];
36+
3037

3138
$files = [];
3239

@@ -48,6 +55,20 @@
4855
throw new Exception("'{$location}' is not a file");
4956
}
5057

58+
59+
if (isset($rules[$role])) {
60+
$matches = false;
61+
foreach ($rules[$role] as $rule) {
62+
if ($matches = preg_match($rule, $filename->getFilename())) {
63+
break;
64+
}
65+
}
66+
67+
if (!$matches) {
68+
continue;
69+
}
70+
}
71+
5172
$dir_files[] = " <file name=\"{$location}\" role=\"{$role}\" />";
5273
}
5374

0 commit comments

Comments
 (0)