From e52e6a361791562dc7939b61d84f1f64fbb79271 Mon Sep 17 00:00:00 2001 From: Christiaan Date: Thu, 1 Jan 2015 21:20:26 +0100 Subject: [PATCH 1/2] Update the Readme section about the public API with the two new functions setTimeLimit and setMemoryLimit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6ee3f51..d3493ce 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,12 @@ PHP API // A time limit (milliseconds) and/or memory limit (bytes) can be provided to restrict execution. These options will throw a V8JsTimeLimitException or V8JsMemoryLimitException. public mixed V8Js::executeString( string $script [, string $identifier [, int $flags = V8Js::FLAG_NONE [, int $time_limit = 0 [, int $memory_limit = 0]]]]) + // Set the time limit (in milliseconds) for this V8Js object works similar to the set_time_limit php function + public setTimeLimit( int $limit ) + + // Set the memory limit (in bytes) for this V8Js object + public setMemoryLimit( int $limit ) + // Compiles a script in object's context with optional identifier string. public mixed V8Js::compileString( string $script [, string $identifier ]) From b6a923c9495fe3170539d023475a8b006751abcb Mon Sep 17 00:00:00 2001 From: Christiaan Date: Thu, 1 Jan 2015 21:43:26 +0100 Subject: [PATCH 2/2] Change the invalid php stub with valid php code that can be used for type hinting --- README.md | 214 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 145 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index d3493ce..be36f1d 100644 --- a/README.md +++ b/README.md @@ -81,95 +81,171 @@ PHP API ======= ```php - class V8Js - { - /* Constants */ +