diff --git a/package.xml b/package.xml
index 418d67e..83d405c 100644
--- a/package.xml
+++ b/package.xml
@@ -26,11 +26,11 @@
pinepain@gmail.com
yes
- 2017-04-30
-
+ 2017-05-03
+
- 0.1.5
- 0.1.5
+ 0.1.6
+ 0.1.6
stable
@@ -38,20 +38,10 @@
The MIT License (MIT)
- This release introduces separate representation for undefined value and fixes some bugs.
- Please, see change list below for more details.
-
- * - BC-breaking or potentially BC-breaking changes
-
Changes to public API and other important changes which may affect end-user:
-
- - * Make V8\Isolate::ThrowException() method void;
- - * Remove non-documented V8Isolate::ContextDisposedNotification();
- - * Make V8\Value, V8\PrimitiveValue and V8\NameValue abstract;
- - V8\Isolate time limit affects js runtime only;
- - Introduce separate class for undefined value - V8UndefenedValue;
- - Fix V8\Tempalte::Set() to do not accept non-primitive values;
- - Remove all private properties from V8\Isolate;
+
+ - Enforce `Value()` method on all `V8\Primitive` values;
+ - Fix segfault when zero args passed to `V8\FunctionObject::NewInstance()`;
@@ -211,6 +201,7 @@
+
diff --git a/php_v8.h b/php_v8.h
index 5467a26..843b2b1 100644
--- a/php_v8.h
+++ b/php_v8.h
@@ -36,11 +36,11 @@ extern zend_module_entry php_v8_module_entry;
#endif
#ifndef PHP_V8_VERSION
-#define PHP_V8_VERSION "0.2.0"
+#define PHP_V8_VERSION "0.1.6"
#endif
#ifndef PHP_V8_REVISION
-#define PHP_V8_REVISION "dev"
+#define PHP_V8_REVISION "release"
#endif
diff --git a/scripts/refresh-package-xml.php b/scripts/refresh-package-xml.php
index 06679a9..9fb554b 100755
--- a/scripts/refresh-package-xml.php
+++ b/scripts/refresh-package-xml.php
@@ -105,4 +105,18 @@
$new_package_filename = 'package.xml';
}
+// Replace version:
+
+$header = file_get_contents('php_v8.h');
+
+if (!preg_match('/#define PHP_V8_VERSION "(.+)"/', $header, $matches)) {
+ throw new RuntimeException("Unable to get release version");
+}
+
+$version = $matches[1];
+
+$package = preg_replace("/\\d+\.\d+.\d+.+\<\/release\>/", '' . $version . '', $package);
+$package = preg_replace("/\\d+\.\d+.\d+.+\<\/api\>/", '' . $version . '', $package);
+
+
file_put_contents($new_package_filename, $package);