diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..914aed5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Merrick Christensen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/README b/README
deleted file mode 100644
index 87a6194..0000000
--- a/README
+++ /dev/null
@@ -1,64 +0,0 @@
-V8Js
-====
-
-V8js is a PHP extension for Google's V8 Javascript engine
-
-
-Minimum requirements
---------------------
-
-- V8 library version >= 3.17.11 (trunk)
-
-- PHP 5.3.3+ (non-ZTS build preferred)
- Note: V8 engine is not natively thread safe and this extension
- has not been designed to work around it either yet and might or
- might not work properly with ZTS enabled PHP. :)
-
-
-API
-===
-
-class V8Js
-{
- /* Constants */
-
- const string V8_VERSION;
- const int FLAG_NONE;
- const int FLAG_FORCE_ARRAY;
-
- /* Methods */
-
- // Initializes and starts V8 engine and Returns new V8Js object with it's own V8 context.
- public __construct ( [string object_name = "PHP" [, array variables = NULL [, array extensions = NULL [, bool report_uncaught_exceptions = TRUE]]] )
-
- // Compiles and executes script in object's context with optional identifier string.
- public mixed V8Js::executeString( string script [, string identifier [, int flags = V8Js::FLAG_NONE]])
-
- // Returns uncaught pending exception or null if there is no pending exception.
- public V8JsException V8Js::getPendingException( void )
-
- /** Static methods **/
-
- // Registers persistent context independent global Javascript extension.
- // NOTE! These extensions exist until PHP is shutdown and they need to be registered before V8 is initialized.
- // For best performance V8 is initialized only once per process thus this call has to be done before any V8Js objects are created!
- public static bool V8Js::registerExtension(string ext_name, string script [, array deps [, bool auto_enable = FALSE]])
-
- // Returns extensions successfully registered with V8Js::registerExtension().
- public static array V8Js::getExtensions( void )
-}
-
-final class V8JsException extends Exception
-{
- /* Properties */
- protected string JsFileName = NULL;
- protected int JsLineNumber = NULL;
- protected string JsSourceLine = NULL;
- protected string JsTrace = NULL;
-
- /* Methods */
- final public string getJsFileName( void )
- final public int getJsLineNumber( void )
- final public string getJsSourceLine( void )
- final public string getJsTrace( void )
-}
diff --git a/package.xml b/package.xml
index 425717d..03d9d37 100644
--- a/package.xml
+++ b/package.xml
@@ -10,20 +10,18 @@ http://pear.php.net/dtd/package-2.0.xsd">
This extension embeds the Google's V8 Javascript Engine into PHP.
- Jani Taskinen
- jani
- jani@php.net
+ Patrick Reilly
+ preilly
+ preilly@php.net
yes
- 2012-07-06
- 0.1.30.1.3
+ 2013-09-28
+ 0.1.40.1.4
betabeta
- PHP
+ The MIT License (MIT)
-- Fixed build in PHP 5.4+
-- Fixed bug #59553 (can't build due to missing class member)
-- Fixed crash bug in setting v8.flags ini directive.
-- Added notice to registerExtension() if trying to use it when V8 is already initialized.
+- Added time/memory limit support
+- Moved to The MIT License (MIT)
@@ -41,7 +39,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- 5.3.3
+ 5.4
1.4.0
@@ -53,6 +51,18 @@ http://pear.php.net/dtd/package-2.0.xsd">
+
+ 0.1.30.1.3
+ betabeta
+ 2012-07-06
+ PHP
+
+ - Fixed build in PHP 5.4+
+ - Fixed bug #59553 (can't build due to missing class member)
+ - Fixed crash bug in setting v8.flags ini directive.
+ - Added notice to registerExtension() if trying to use it when V8 is already initialized.
+
+
0.1.10.1.1
betabeta
@@ -73,4 +83,4 @@ http://pear.php.net/dtd/package-2.0.xsd">
-
+
\ No newline at end of file
diff --git a/php_v8js.h b/php_v8js.h
index e5c644a..c40563c 100644
--- a/php_v8js.h
+++ b/php_v8js.h
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |
diff --git a/php_v8js_macros.h b/php_v8js_macros.h
index fe3d2d3..8da8861 100644
--- a/php_v8js_macros.h
+++ b/php_v8js_macros.h
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |
diff --git a/v8js.cc b/v8js.cc
index 930624d..7bac07f 100644
--- a/v8js.cc
+++ b/v8js.cc
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |
diff --git a/v8js_commonjs.cc b/v8js_commonjs.cc
index 5d7290d..a7291b6 100644
--- a/v8js_commonjs.cc
+++ b/v8js_commonjs.cc
@@ -2,17 +2,12 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
- | Author: Simon Best |
+ | Author: Jani Taskinen |
+ | Author: Patrick Reilly |
+----------------------------------------------------------------------+
*/
diff --git a/v8js_convert.cc b/v8js_convert.cc
index a5ee99b..6be3d24 100644
--- a/v8js_convert.cc
+++ b/v8js_convert.cc
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |
diff --git a/v8js_methods.cc b/v8js_methods.cc
index abd5475..c8dd73d 100644
--- a/v8js_methods.cc
+++ b/v8js_methods.cc
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |
diff --git a/v8js_variables.cc b/v8js_variables.cc
index 0ecfa74..c039271 100644
--- a/v8js_variables.cc
+++ b/v8js_variables.cc
@@ -2,15 +2,9 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2012 The PHP Group |
+ | Copyright (c) 1997-2013 The PHP Group |
+----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
+ | http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Jani Taskinen |
| Author: Patrick Reilly |