From 04d9e6fccea7ff37f43a382ec9412ab81c895a1d Mon Sep 17 00:00:00 2001 From: Bogdan Padalko Date: Fri, 28 Apr 2017 21:39:22 +0300 Subject: [PATCH] Remove limit propertis from V8\Isolate --- scripts/replace_expect.php | 55 ++-- src/php_v8_exceptions.h | 1 - src/php_v8_isolate.cc | 40 +-- src/php_v8_isolate_limits.cc | 14 - src/php_v8_isolate_limits.h | 1 - tests/V8ArrayObject.phpt | 110 +------- tests/V8Boolean.phpt | 10 +- tests/V8BooleanObject.phpt | 20 +- tests/V8Context_reference_lifecycle.phpt | 20 +- tests/V8DateObject.phpt | 20 +- tests/V8ExceptionsTryCatchException.phpt | 42 +-- tests/V8FunctionCallbackInfo.phpt | 260 ++---------------- tests/V8FunctionObject.phpt | 20 +- tests/V8FunctionTemplate.phpt | 30 +- tests/V8Int32Value.phpt | 20 +- tests/V8IntegerValue.phpt | 20 +- tests/V8Isolate.phpt | 28 +- tests/V8Isolate_limit_memory.phpt | 38 +-- tests/V8Isolate_limit_memory_nested.phpt | 20 +- tests/V8Isolate_limit_memory_not_hit.phpt | 23 +- tests/V8Isolate_limit_time.phpt | 25 +- tests/V8Isolate_limit_time_nested.phpt | 26 +- tests/V8Isolate_limit_time_not_hit.phpt | 23 +- ...olate_limit_time_set_during_execution.phpt | 25 +- tests/V8Isolate_snapshot_support.phpt | 10 +- tests/V8MapObject.phpt | 110 +------- tests/V8NullValue.phpt | 20 +- tests/V8NumberObject.phpt | 20 +- tests/V8NumberValue.phpt | 20 +- tests/V8ObjectTemplate.phpt | 10 +- tests/V8ObjectValue.phpt | 110 +------- tests/V8PropertyCallbackInfo.phpt | 80 +----- tests/V8RegExpObject.phpt | 20 +- tests/V8ReturnValue_context.phpt | 40 +-- tests/V8Script.phpt | 30 +- tests/V8SetObject.phpt | 110 +------- tests/V8Source.phpt | 40 +-- tests/V8StringObject.phpt | 30 +- tests/V8StringValue.phpt | 20 +- tests/V8SymbolObject.phpt | 30 +- tests/V8SymbolValue.phpt | 80 +----- tests/V8TryCatch.phpt | 70 +---- tests/V8Uint32Value.phpt | 20 +- tests/V8UnboundScript.phpt | 10 +- tests/V8Undefined.phpt | 20 +- tests/V8UndefinedValue_destruct.phpt | 10 +- 46 files changed, 248 insertions(+), 1553 deletions(-) diff --git a/scripts/replace_expect.php b/scripts/replace_expect.php index dc13cb5..4511264 100755 --- a/scripts/replace_expect.php +++ b/scripts/replace_expect.php @@ -15,8 +15,25 @@ $tests_dir = realpath(__DIR__ . '/../tests'); -if ($argc == 2) { - $mask = str_replace(['tests/', '.phpt', '.diff'], '', $argv[1]); +$mode = 'write'; + +$args = $argv; +unset($args[0]); + +foreach ($argv as $i => $item) { + if ($item == '--pretend') { + $mode = 'pretend'; + unset($args[$i]); + } +} + +if (count($args) > 1) { + echo 'Invalid options', PHP_EOL; + exit(1); +} + +if ($args) { + $mask = str_replace(['tests/', '.phpt', '.diff'], '', array_pop($args)); } else { $mask = '*'; } @@ -25,41 +42,41 @@ foreach ($iterator as $item) { //var_dump($item); - $out_file = $iterator->key(); + $out_file = $iterator->key(); $base_name = preg_replace('/\.out$/i', '', $iterator->key()); - $test_file = $base_name .'.phpt'; + $test_file = $base_name . '.phpt'; $test_content = file_get_contents($tests_dir . '/' . $test_file); if (false !== ($pos = strpos($test_content, '--EXPECT--'))) { - printf("--EXPECT-- [%s]".PHP_EOL, $iterator->key()); + printf("--EXPECT-- [%s]" . PHP_EOL, $iterator->key()); $test_content = substr($test_content, 0, $pos); - $test_content .= '--EXPECT--'.PHP_EOL; + $test_content .= '--EXPECT--' . PHP_EOL; $test_content .= file_get_contents($tests_dir . '/' . $out_file); $test_content .= PHP_EOL; file_put_contents($tests_dir . '/' . $test_file, $test_content); foreach (['.diff', '.exp', '.log', '.mem', '.out', '.php', '.sh'] as $ext) { - @unlink($tests_dir. '/'.$base_name . $ext); + @unlink($tests_dir . '/' . $base_name . $ext); } continue; - //} elseif (0) { + //} elseif (0) { } elseif (false !== ($pos = strpos($test_content, '--EXPECTF--'))) { - printf("--EXPECTF-- [%s]".PHP_EOL, $iterator->key()); + printf("--EXPECTF-- [%s]" . PHP_EOL, $iterator->key()); // get replacements - $tests = substr($test_content, 0, $pos); + $tests = substr($test_content, 0, $pos); $result = file_get_contents($tests_dir . '/' . $out_file); preg_match_all('#// EXPECTF: \-\-\-(.+)#', $tests, $expectf_search); preg_match_all('#// EXPECTF: \+\+\+(.+)#', $tests, $expectf_replace); if (count($expectf_search) != count($expectf_replace)) { - printf("please, edit manually [%s]: searches and replaces count doesn't match".PHP_EOL, $iterator->key()); + printf("please, edit manually [%s]: searches and replaces count doesn't match" . PHP_EOL, $iterator->key()); continue; } @@ -68,18 +85,24 @@ } $test_content = $tests; - $test_content .= '--EXPECTF--'.PHP_EOL; + $test_content .= '--EXPECTF--' . PHP_EOL; $test_content .= $result; $test_content .= PHP_EOL; - file_put_contents($tests_dir . '/' . $test_file, $test_content); + if ($mode == 'pretend') { + echo $result, PHP_EOL; + echo PHP_EOL; - foreach (['.diff', '.exp', '.log', '.mem', '.out', '.php', '.sh'] as $ext) { - @unlink($tests_dir. '/'.$base_name . $ext); + } elseif ($mode = 'write') { + file_put_contents($tests_dir . '/' . $test_file, $test_content); + + foreach (['.diff', '.exp', '.log', '.mem', '.out', '.php', '.sh'] as $ext) { + @unlink($tests_dir . '/' . $base_name . $ext); + } } continue; } - printf("please, edit manually [%s]".PHP_EOL, $iterator->key()); + printf("please, edit manually [%s]" . PHP_EOL, $iterator->key()); } diff --git a/src/php_v8_exceptions.h b/src/php_v8_exceptions.h index fc5d060..739da4a 100644 --- a/src/php_v8_exceptions.h +++ b/src/php_v8_exceptions.h @@ -50,7 +50,6 @@ extern void php_v8_throw_try_catch_exception(php_v8_context_t *php_v8_context, v #define PHP_V8_CATCH_END() } assert(!try_catch.HasCaught()); #define PHP_V8_MAYBE_CATCH(php_v8_context, try_catch) \ - php_v8_isolate_maybe_update_limits_hit((php_v8_context)->php_v8_isolate);\ php_v8_isolate_limits_maybe_stop_timer((php_v8_context)->php_v8_isolate);\ if ((try_catch).HasCaught()) { \ php_v8_throw_try_catch_exception((php_v8_context), &(try_catch)); \ diff --git a/src/php_v8_isolate.cc b/src/php_v8_isolate.cc index af2affe..e244e83 100644 --- a/src/php_v8_isolate.cc +++ b/src/php_v8_isolate.cc @@ -236,39 +236,26 @@ static PHP_METHOD(V8Isolate, SetTimeLimit) { } php_v8_isolate_limits_set_time_limit(php_v8_isolate, time_limit_in_seconds); - - zend_update_property_double(this_ce, getThis(), ZEND_STRL("time_limit"), time_limit_in_seconds); - zend_update_property_bool(this_ce, getThis(), ZEND_STRL("time_limit_hit"), 0); } static PHP_METHOD(V8Isolate, GetTimeLimit) { - zval rv; - - zval *prop = NULL; if (zend_parse_parameters_none() == FAILURE) { return; } PHP_V8_ISOLATE_FETCH_WITH_CHECK(getThis(), php_v8_isolate); - prop = zend_read_property(this_ce, getThis(), ZEND_STRL("time_limit"), 0, &rv); - - RETVAL_ZVAL(prop, 1, 0); + RETVAL_DOUBLE(php_v8_isolate->limits.time_limit); } static PHP_METHOD(V8Isolate, IsTimeLimitHit) { - zval rv; - - zval *prop = NULL; if (zend_parse_parameters_none() == FAILURE) { return; } PHP_V8_ISOLATE_FETCH_WITH_CHECK(getThis(), php_v8_isolate); - prop = zend_read_property(this_ce, getThis(), ZEND_STRL("time_limit_hit"), 0, &rv); - - RETVAL_ZVAL(prop, 1, 0); + RETVAL_BOOL(php_v8_isolate->limits.time_limit_hit); } static PHP_METHOD(V8Isolate, SetMemoryLimit) { @@ -286,39 +273,26 @@ static PHP_METHOD(V8Isolate, SetMemoryLimit) { } php_v8_isolate_limits_set_memory_limit(php_v8_isolate, static_cast(memory_limit_in_bytes)); - - zend_update_property_long(this_ce, getThis(), ZEND_STRL("memory_limit"), memory_limit_in_bytes); - zend_update_property_bool(this_ce, getThis(), ZEND_STRL("memory_limit_hit"), 0); } static PHP_METHOD(V8Isolate, GetMemoryLimit) { - zval rv; - - zval *prop = NULL; if (zend_parse_parameters_none() == FAILURE) { return; } PHP_V8_ISOLATE_FETCH_WITH_CHECK(getThis(), php_v8_isolate); - prop = zend_read_property(this_ce, getThis(), ZEND_STRL("memory_limit"), 0, &rv); - - RETVAL_ZVAL(prop, 1, 0); + RETURN_LONG(php_v8_isolate->limits.memory_limit); } static PHP_METHOD(V8Isolate, IsMemoryLimitHit) { - zval rv; - - zval *prop = NULL; if (zend_parse_parameters_none() == FAILURE) { return; } PHP_V8_ISOLATE_FETCH_WITH_CHECK(getThis(), php_v8_isolate); - prop = zend_read_property(this_ce, getThis(), ZEND_STRL("memory_limit_hit"), 0, &rv); - - RETVAL_ZVAL(prop, 1, 0); + RETVAL_BOOL(php_v8_isolate->limits.memory_limit_hit); } static PHP_METHOD(V8Isolate, GetHeapStatistics) { @@ -604,12 +578,6 @@ PHP_MINIT_FUNCTION (php_v8_isolate) { this_ce = zend_register_internal_class(&ce); this_ce->create_object = php_v8_isolate_ctor; - zend_declare_property_double(this_ce, ZEND_STRL("time_limit"), 0.0, ZEND_ACC_PRIVATE); - zend_declare_property_bool(this_ce, ZEND_STRL("time_limit_hit"), 0, ZEND_ACC_PRIVATE); - - zend_declare_property_long(this_ce, ZEND_STRL("memory_limit"), 0, ZEND_ACC_PRIVATE); - zend_declare_property_bool(this_ce, ZEND_STRL("memory_limit_hit"), 0, ZEND_ACC_PRIVATE); - memcpy(&php_v8_isolate_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); php_v8_isolate_object_handlers.offset = XtOffsetOf(php_v8_isolate_t, std); diff --git a/src/php_v8_isolate_limits.cc b/src/php_v8_isolate_limits.cc index 1eb00d8..e34a2cd 100644 --- a/src/php_v8_isolate_limits.cc +++ b/src/php_v8_isolate_limits.cc @@ -182,20 +182,6 @@ void php_v8_isolate_limits_ctor(php_v8_isolate_t *php_v8_isolate) { limits->depth = 0; } -void php_v8_isolate_maybe_update_limits_hit(php_v8_isolate_t *php_v8_isolate) { - zval isolate_zv; - - ZVAL_OBJ(&isolate_zv, &php_v8_isolate->std); - PHP_V8_DECLARE_LIMITS(php_v8_isolate); - - if (limits->time_limit) { - zend_update_property_bool(php_v8_isolate_class_entry, &isolate_zv, ZEND_STRL("time_limit_hit"), limits->time_limit_hit); - } - if (limits->memory_limit) { - zend_update_property_bool(php_v8_isolate_class_entry, &isolate_zv, ZEND_STRL("memory_limit_hit"), limits->memory_limit_hit); - } -} - void php_v8_isolate_limits_set_time_limit(php_v8_isolate_t *php_v8_isolate, double time_limit_in_seconds) { PHP_V8_DECLARE_ISOLATE(php_v8_isolate); PHP_V8_DECLARE_LIMITS(php_v8_isolate); diff --git a/src/php_v8_isolate_limits.h b/src/php_v8_isolate_limits.h index a114e42..8b27c1f 100644 --- a/src/php_v8_isolate_limits.h +++ b/src/php_v8_isolate_limits.h @@ -29,7 +29,6 @@ extern void php_v8_isolate_limits_maybe_stop_timer(php_v8_isolate_t *php_v8_isol extern void php_v8_isolate_limits_free(php_v8_isolate_t *php_v8_isolate); extern void php_v8_isolate_limits_ctor(php_v8_isolate_t *php_v8_isolate); -extern void php_v8_isolate_maybe_update_limits_hit(php_v8_isolate_t *php_v8_isolate); extern void php_v8_isolate_limits_set_time_limit(php_v8_isolate_t *php_v8_isolate, double time_limit_in_seconds); extern void php_v8_isolate_limits_set_memory_limit(php_v8_isolate_t *php_v8_isolate, size_t memory_limit_in_bytes); diff --git a/tests/V8ArrayObject.phpt b/tests/V8ArrayObject.phpt index 0e17783..f1ccb2c 100644 --- a/tests/V8ArrayObject.phpt +++ b/tests/V8ArrayObject.phpt @@ -63,28 +63,12 @@ Object representation: ---------------------- object(V8\ArrayObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -160,127 +144,55 @@ Converters: V8\ArrayObject(V8\Value)->ToBoolean(): object(V8\BooleanValue)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToNumber(): object(V8\Int32Value)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToString(): object(V8\StringValue)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToDetailString(): object(V8\StringValue)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToObject(): object(V8\ArrayObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } V8\ArrayObject(V8\Value)->ToInteger(): object(V8\Int32Value)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToUint32(): object(V8\Int32Value)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToInt32(): object(V8\Int32Value)#118 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ArrayObject(V8\Value)->ToArrayIndex(): V8\Exceptions\Exception: Failed to convert diff --git a/tests/V8Boolean.phpt b/tests/V8Boolean.phpt index d2493c1..092f611 100644 --- a/tests/V8Boolean.phpt +++ b/tests/V8Boolean.phpt @@ -55,15 +55,7 @@ Object representation: ---------------------- object(V8\BooleanValue)#2 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } diff --git a/tests/V8BooleanObject.phpt b/tests/V8BooleanObject.phpt index 970c29d..fd868be 100644 --- a/tests/V8BooleanObject.phpt +++ b/tests/V8BooleanObject.phpt @@ -51,28 +51,12 @@ Object representation: ---------------------- object(V8\BooleanObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } diff --git a/tests/V8Context_reference_lifecycle.phpt b/tests/V8Context_reference_lifecycle.phpt index 7186d17..27ccb15 100644 --- a/tests/V8Context_reference_lifecycle.phpt +++ b/tests/V8Context_reference_lifecycle.phpt @@ -43,15 +43,7 @@ $obj = null; --EXPECT-- object(v8Tests\TrackingDtors\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -61,15 +53,7 @@ Previous context should be dead, creating zval for object from old context object(v8Tests\TrackingDtors\Context)#6 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } Context dies now! diff --git a/tests/V8DateObject.phpt b/tests/V8DateObject.phpt index f3bf80c..578630c 100644 --- a/tests/V8DateObject.phpt +++ b/tests/V8DateObject.phpt @@ -111,28 +111,12 @@ Object representation: ---------------------- object(V8\DateObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } diff --git a/tests/V8ExceptionsTryCatchException.phpt b/tests/V8ExceptionsTryCatchException.phpt index 89a772c..d2a5eda 100644 --- a/tests/V8ExceptionsTryCatchException.phpt +++ b/tests/V8ExceptionsTryCatchException.phpt @@ -26,6 +26,8 @@ $helper->method_matches($value, 'GetContext', $context); $helper->method_matches($value, 'GetTryCatch', $try_catch); $helper->space(); +// EXPECTF: ---/string\(.+\) ".+\/V8ExceptionsTryCatchException\.php"/ +// EXPECTF: +++string(%d) "%s/V8ExceptionsTryCatchException.php" ?> --EXPECTF-- Object representation: @@ -47,55 +49,23 @@ object(V8\Exceptions\TryCatchException)#5 (10) { ["previous":"Exception":private]=> NULL ["isolate":"V8\Exceptions\TryCatchException":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\Exceptions\TryCatchException":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } ["try_catch":"V8\Exceptions\TryCatchException":private]=> object(V8\TryCatch)#4 (7) { ["isolate":"V8\TryCatch":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\TryCatch":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } ["exception":"V8\TryCatch":private]=> diff --git a/tests/V8FunctionCallbackInfo.phpt b/tests/V8FunctionCallbackInfo.phpt index 69c9fd7..b2be3af 100644 --- a/tests/V8FunctionCallbackInfo.phpt +++ b/tests/V8FunctionCallbackInfo.phpt @@ -78,111 +78,47 @@ Object representation: ---------------------- object(V8\FunctionCallbackInfo)#10 (8) { ["isolate":"V8\CallbackInfo":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\CallbackInfo":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["this":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#11 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } ["holder":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#11 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } ["return_value":"V8\CallbackInfo":private]=> object(V8\ReturnValue)#12 (2) { ["isolate":"V8\ReturnValue":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } @@ -191,42 +127,18 @@ object(V8\FunctionCallbackInfo)#10 (8) { [0]=> object(V8\StringValue)#13 (1) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } [1]=> object(V8\ObjectValue)#6 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } @@ -234,15 +146,7 @@ object(V8\FunctionCallbackInfo)#10 (8) { ["new_target":"V8\FunctionCallbackInfo":private]=> object(V8\UndefinedValue)#14 (1) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["is_constructor_call":"V8\FunctionCallbackInfo":private]=> @@ -261,28 +165,12 @@ string(11) "Script done" object(V8\ReturnValue)#12 (2) { ["isolate":"V8\ReturnValue":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } @@ -291,111 +179,47 @@ Object representation (outside of context): ------------------------------------------- object(V8\FunctionCallbackInfo)#10 (8) { ["isolate":"V8\CallbackInfo":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\CallbackInfo":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["this":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#11 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } ["holder":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#11 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } ["return_value":"V8\CallbackInfo":private]=> object(V8\ReturnValue)#12 (2) { ["isolate":"V8\ReturnValue":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } @@ -404,42 +228,18 @@ object(V8\FunctionCallbackInfo)#10 (8) { [0]=> object(V8\StringValue)#13 (1) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } [1]=> object(V8\ObjectValue)#6 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } @@ -447,15 +247,7 @@ object(V8\FunctionCallbackInfo)#10 (8) { ["new_target":"V8\FunctionCallbackInfo":private]=> object(V8\UndefinedValue)#14 (1) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["is_constructor_call":"V8\FunctionCallbackInfo":private]=> diff --git a/tests/V8FunctionObject.phpt b/tests/V8FunctionObject.phpt index 31d94c7..ae24531 100644 --- a/tests/V8FunctionObject.phpt +++ b/tests/V8FunctionObject.phpt @@ -59,28 +59,12 @@ Object representation: ---------------------- object(v8Tests\TrackingDtors\FunctionObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#3 (0) { } } } diff --git a/tests/V8FunctionTemplate.phpt b/tests/V8FunctionTemplate.phpt index fed92fd..383cab2 100644 --- a/tests/V8FunctionTemplate.phpt +++ b/tests/V8FunctionTemplate.phpt @@ -140,15 +140,7 @@ Object representation: ---------------------- object(V8\FunctionTemplate)#5 (1) { ["isolate":"V8\Template":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -160,15 +152,7 @@ Object representation: ---------------------- object(V8\FunctionTemplate)#5 (1) { ["isolate":"V8\Template":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -182,15 +166,7 @@ Instance template: ------------------ object(V8\ObjectTemplate)#8 (1) { ["isolate":"V8\Template":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\FunctionTemplate::InstanceTemplate() doesn't match expected value diff --git a/tests/V8Int32Value.phpt b/tests/V8Int32Value.phpt index 6aaa085..cb04dc0 100644 --- a/tests/V8Int32Value.phpt +++ b/tests/V8Int32Value.phpt @@ -82,15 +82,7 @@ Object representation: ---------------------- object(V8\Int32Value)#2 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } @@ -161,15 +153,7 @@ V8\Int32Value::ToString() converting: ------------------------------------- object(V8\StringValue)#79 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } string(10) "2147483646" diff --git a/tests/V8IntegerValue.phpt b/tests/V8IntegerValue.phpt index 607a487..68986e4 100644 --- a/tests/V8IntegerValue.phpt +++ b/tests/V8IntegerValue.phpt @@ -82,15 +82,7 @@ Object representation: ---------------------- object(V8\IntegerValue)#2 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } @@ -161,15 +153,7 @@ V8\IntegerValue::ToString() converting: --------------------------------------- object(V8\StringValue)#79 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } string(3) "123" diff --git a/tests/V8Isolate.phpt b/tests/V8Isolate.phpt index e8a376a..926cfbd 100644 --- a/tests/V8Isolate.phpt +++ b/tests/V8Isolate.phpt @@ -20,41 +20,33 @@ $helper->method_export($isolate, 'GetHeapStatistics'); $isolate = null; -// EXPECTF: ---/float\(.+\)"/ +// EXPECTF: ---/float\(.+\)/ // EXPECTF: +++float(%f) ?> --EXPECTF-- Object representation: ---------------------- -object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#2 (0) { } V8\Isolate->GetHeapStatistics(): object(V8\HeapStatistics)#26 (9) { ["total_heap_size":"V8\HeapStatistics":private]=> - float(3244032) + float(%f) ["total_heap_size_executable":"V8\HeapStatistics":private]=> - float(3145728) + float(%f) ["total_physical_size":"V8\HeapStatistics":private]=> - float(1676112) + float(%f) ["total_available_size":"V8\HeapStatistics":private]=> - float(1496291688) + float(%f) ["used_heap_size":"V8\HeapStatistics":private]=> - float(1583440) + float(%f) ["heap_size_limit":"V8\HeapStatistics":private]=> - float(1501560832) + float(%f) ["malloced_memory":"V8\HeapStatistics":private]=> - float(8192) + float(%f) ["peak_malloced_memory":"V8\HeapStatistics":private]=> - float(8192) + float(%f) ["does_zap_garbage":"V8\HeapStatistics":private]=> bool(false) } diff --git a/tests/V8Isolate_limit_memory.phpt b/tests/V8Isolate_limit_memory.phpt index 7ac2bb9..a0b83d2 100644 --- a/tests/V8Isolate_limit_memory.phpt +++ b/tests/V8Isolate_limit_memory.phpt @@ -61,20 +61,14 @@ $helper->line(); $helper->dump($isolate); $helper->dump($isolate->GetHeapStatistics()); +// EXPECTF: ---/float\(.+\)/ +// EXPECTF: +++float(%f) ?> --EXPECTF-- Memory limit accessor report no hit: ok Get memory limit default value is zero: ok Get memory limit returns valid value: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } V8\Exceptions\MemoryLimitException: Memory limit exceeded @@ -82,33 +76,25 @@ script execution terminated Get memory limit returns valid value: ok Memory limit accessor report hit: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(true) +object(V8\Isolate)#3 (0) { } object(V8\HeapStatistics)#10 (9) { ["total_heap_size":"V8\HeapStatistics":private]=> - float(14737408) + float(%f) ["total_heap_size_executable":"V8\HeapStatistics":private]=> - float(3670016) + float(%f) ["total_physical_size":"V8\HeapStatistics":private]=> - float(12383272) + float(%f) ["total_available_size":"V8\HeapStatistics":private]=> - float(1486132752) + float(%f) ["used_heap_size":"V8\HeapStatistics":private]=> - float(12226176) + float(%f) ["heap_size_limit":"V8\HeapStatistics":private]=> - float(1501560832) + float(%f) ["malloced_memory":"V8\HeapStatistics":private]=> - float(8192) + float(%f) ["peak_malloced_memory":"V8\HeapStatistics":private]=> - float(187880) + float(%f) ["does_zap_garbage":"V8\HeapStatistics":private]=> bool(false) } diff --git a/tests/V8Isolate_limit_memory_nested.phpt b/tests/V8Isolate_limit_memory_nested.phpt index 44f8208..1190b6c 100644 --- a/tests/V8Isolate_limit_memory_nested.phpt +++ b/tests/V8Isolate_limit_memory_nested.phpt @@ -92,15 +92,7 @@ $helper->line(); $helper->dump($isolate); ?> --EXPECT-- -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } V8\Exceptions\MemoryLimitException: Memory limit exceeded @@ -112,13 +104,5 @@ function call terminated V8\Exceptions\MemoryLimitException: Memory limit exceeded script execution terminated -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(true) +object(V8\Isolate)#3 (0) { } diff --git a/tests/V8Isolate_limit_memory_not_hit.phpt b/tests/V8Isolate_limit_memory_not_hit.phpt index a4b5b60..ee3fd37 100644 --- a/tests/V8Isolate_limit_memory_not_hit.phpt +++ b/tests/V8Isolate_limit_memory_not_hit.phpt @@ -48,20 +48,15 @@ $helper->assert('Memory limit accessor report not hit', false === $isolate->IsMe $helper->line(); $helper->dump($isolate); + +// EXPECTF: ---/float\(0\..+\)/ +// EXPECTF: +++float(0.%d) ?> --EXPECTF-- Memory limit accessor report no hit: ok Get memory limit default value is zero: ok Get memory limit returns valid value: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } start @@ -72,13 +67,5 @@ Script execution time is less than 0.5 sec: ok Get memory limit returns valid value: ok Memory limit accessor report not hit: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(10485760) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } diff --git a/tests/V8Isolate_limit_time.phpt b/tests/V8Isolate_limit_time.phpt index 92a3507..83560db 100644 --- a/tests/V8Isolate_limit_time.phpt +++ b/tests/V8Isolate_limit_time.phpt @@ -63,22 +63,17 @@ $helper->assert('Time limit accessor report hit', true === $isolate->IsTimeLimit $helper->line(); $helper->dump($isolate); -// EXPECTF: ---/float\(.+\)"/ +// EXPECTF: ---/float\(.+\)/ // EXPECTF: +++float(%f) + +// EXPECTF: ---/range \(.+, .+\)/ +// EXPECTF: +++range (%f, %f) ?> --EXPECTF-- Time limit accessor report no hit: ok Get time limit default value is zero: ok Get time limit returns valid value: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } V8\Exceptions\TimeLimitException: Time limit exceeded @@ -89,13 +84,5 @@ Script execution time is within specified range (%f, %f): ok Get time limit returns valid value: ok Time limit accessor report hit: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(true) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } diff --git a/tests/V8Isolate_limit_time_nested.phpt b/tests/V8Isolate_limit_time_nested.phpt index 5a1de4c..c7ae994 100644 --- a/tests/V8Isolate_limit_time_nested.phpt +++ b/tests/V8Isolate_limit_time_nested.phpt @@ -86,17 +86,15 @@ try { $helper->line(); $helper->dump($isolate); + +// EXPECTF: ---/float\(.+\)/ +// EXPECTF: +++float(%f) + +// EXPECTF: ---/range \(.+, .+\)/ +// EXPECTF: +++range (%f, %f) ?> --EXPECTF-- -object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#2 (0) { } V8\Exceptions\TimeLimitException: Time limit exceeded @@ -111,13 +109,5 @@ script execution terminated float(%f) Script execution time is within specified range (%f, %f): ok -object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(true) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#2 (0) { } diff --git a/tests/V8Isolate_limit_time_not_hit.phpt b/tests/V8Isolate_limit_time_not_hit.phpt index 7de8e8a..f120bdb 100644 --- a/tests/V8Isolate_limit_time_not_hit.phpt +++ b/tests/V8Isolate_limit_time_not_hit.phpt @@ -48,20 +48,15 @@ $helper->assert('Time limit accessor report not hit', false === $isolate->IsTime $helper->line(); $helper->dump($isolate); + +// EXPECTF: ---/float\(0\..+\)/ +// EXPECTF: +++float(0.%d) ?> --EXPECTF-- Time limit accessor report no hit: ok Get time limit default value is zero: ok Get time limit returns valid value: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } start @@ -72,13 +67,5 @@ Script execution time is less than 0.5 sec: ok Get time limit returns valid value: ok Time limit accessor report not hit: ok -object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#3 (0) { } diff --git a/tests/V8Isolate_limit_time_set_during_execution.phpt b/tests/V8Isolate_limit_time_set_during_execution.phpt index 2756a57..b2fe6b3 100644 --- a/tests/V8Isolate_limit_time_set_during_execution.phpt +++ b/tests/V8Isolate_limit_time_set_during_execution.phpt @@ -61,17 +61,14 @@ try { $helper->line(); $helper->dump($isolate); +// EXPECTF: ---/float\(.+\)/ +// EXPECTF: +++float(%f) + +// EXPECTF: ---/range \(.+, .+\)/ +// EXPECTF: +++range (%f, %f) ?> --EXPECTF-- -object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#2 (0) { } V8\Exceptions\TimeLimitException: Time limit exceeded @@ -80,13 +77,5 @@ script execution terminated float(%f) Script execution time is within specified range (%f, %f): ok -object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(%f) - ["time_limit_hit":"V8\Isolate":private]=> - bool(true) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(V8\Isolate)#2 (0) { } diff --git a/tests/V8Isolate_snapshot_support.phpt b/tests/V8Isolate_snapshot_support.phpt index 82b074f..d451ec0 100644 --- a/tests/V8Isolate_snapshot_support.phpt +++ b/tests/V8Isolate_snapshot_support.phpt @@ -74,15 +74,7 @@ echo 'END', PHP_EOL; --EXPECT-- Object representation (no snapshot): ------------------------------------ -object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) +object(v8Tests\TrackingDtors\Isolate)#2 (0) { } diff --git a/tests/V8MapObject.phpt b/tests/V8MapObject.phpt index 0df5de8..5563865 100644 --- a/tests/V8MapObject.phpt +++ b/tests/V8MapObject.phpt @@ -102,28 +102,12 @@ Object representation: ---------------------- object(V8\MapObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -206,127 +190,55 @@ Converters: V8\MapObject(V8\Value)->ToBoolean(): object(V8\BooleanValue)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToNumber(): object(V8\NumberValue)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToString(): object(V8\StringValue)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToDetailString(): object(V8\StringValue)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToObject(): object(V8\MapObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } V8\MapObject(V8\Value)->ToInteger(): object(V8\Int32Value)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToUint32(): object(V8\Int32Value)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToInt32(): object(V8\Int32Value)#120 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\MapObject(V8\Value)->ToArrayIndex(): V8\Exceptions\Exception: Failed to convert diff --git a/tests/V8NullValue.phpt b/tests/V8NullValue.phpt index f55a41c..5de774f 100644 --- a/tests/V8NullValue.phpt +++ b/tests/V8NullValue.phpt @@ -54,15 +54,7 @@ Object representation: ---------------------- object(V8\NullValue)#2 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } @@ -139,15 +131,7 @@ V8\NullValue::ToString() converting: ------------------------------------ object(V8\StringValue)#79 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#1 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#1 (0) { } } string(4) "null" diff --git a/tests/V8NumberObject.phpt b/tests/V8NumberObject.phpt index 1343feb..72059a3 100644 --- a/tests/V8NumberObject.phpt +++ b/tests/V8NumberObject.phpt @@ -65,28 +65,12 @@ Object representation: ---------------------- object(V8\NumberObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } diff --git a/tests/V8NumberValue.phpt b/tests/V8NumberValue.phpt index 343280b..81ed08f 100644 --- a/tests/V8NumberValue.phpt +++ b/tests/V8NumberValue.phpt @@ -79,15 +79,7 @@ Object representation: ---------------------- object(V8\NumberValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -158,15 +150,7 @@ V8\NumberValue::ToString() converting: -------------------------------------- object(V8\StringValue)#79 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } string(7) "123.456" diff --git a/tests/V8ObjectTemplate.phpt b/tests/V8ObjectTemplate.phpt index 55a7475..f396ddf 100644 --- a/tests/V8ObjectTemplate.phpt +++ b/tests/V8ObjectTemplate.phpt @@ -49,15 +49,7 @@ Object representation: ---------------------- object(V8\ObjectTemplate)#4 (1) { ["isolate":"V8\Template":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } diff --git a/tests/V8ObjectValue.phpt b/tests/V8ObjectValue.phpt index d156bb7..7096246 100644 --- a/tests/V8ObjectValue.phpt +++ b/tests/V8ObjectValue.phpt @@ -49,28 +49,12 @@ Object representation: ---------------------- object(V8\ObjectValue)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -153,127 +137,55 @@ Converters: V8\ObjectValue(V8\Value)->ToBoolean(): object(V8\BooleanValue)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToNumber(): object(V8\NumberValue)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToString(): object(V8\StringValue)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToDetailString(): object(V8\StringValue)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToObject(): object(V8\ObjectValue)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } V8\ObjectValue(V8\Value)->ToInteger(): object(V8\Int32Value)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToUint32(): object(V8\Int32Value)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToInt32(): object(V8\Int32Value)#117 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\ObjectValue(V8\Value)->ToArrayIndex(): V8\Exceptions\Exception: Failed to convert diff --git a/tests/V8PropertyCallbackInfo.phpt b/tests/V8PropertyCallbackInfo.phpt index c15af56..a773755 100644 --- a/tests/V8PropertyCallbackInfo.phpt +++ b/tests/V8PropertyCallbackInfo.phpt @@ -59,111 +59,47 @@ Object representation: ---------------------- object(V8\PropertyCallbackInfo)#8 (6) { ["isolate":"V8\CallbackInfo":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\CallbackInfo":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } ["this":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#5 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } } ["holder":"V8\CallbackInfo":private]=> object(V8\ObjectValue)#5 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } } ["return_value":"V8\CallbackInfo":private]=> object(V8\ReturnValue)#9 (2) { ["isolate":"V8\ReturnValue":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } } diff --git a/tests/V8RegExpObject.phpt b/tests/V8RegExpObject.phpt index e9357bf..333aa7a 100644 --- a/tests/V8RegExpObject.phpt +++ b/tests/V8RegExpObject.phpt @@ -60,28 +60,12 @@ Object representation: ---------------------- object(V8\RegExpObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } diff --git a/tests/V8ReturnValue_context.phpt b/tests/V8ReturnValue_context.phpt index db1e9d2..9c8cafb 100644 --- a/tests/V8ReturnValue_context.phpt +++ b/tests/V8ReturnValue_context.phpt @@ -75,28 +75,12 @@ Object representation: ---------------------- object(V8\ReturnValue)#12 (2) { ["isolate":"V8\ReturnValue":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -116,28 +100,12 @@ Object representation (outside of context): ------------------------------------------- object(V8\ReturnValue)#12 (2) { ["isolate":"V8\ReturnValue":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ReturnValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } diff --git a/tests/V8Script.phpt b/tests/V8Script.phpt index 0319ffd..67e479d 100644 --- a/tests/V8Script.phpt +++ b/tests/V8Script.phpt @@ -53,28 +53,12 @@ $v8_helper->run_checks($res, 'Checkers'); --EXPECT-- object(V8\Script)#7 (2) { ["isolate":"V8\Script":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\Script":private]=> object(V8\Context)#6 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -88,15 +72,7 @@ Get unbound script: V8\Script::GetUnboundScript() result is instance of V8\UnboundScript object(V8\UnboundScript)#8 (1) { ["isolate":"V8\UnboundScript":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } diff --git a/tests/V8SetObject.phpt b/tests/V8SetObject.phpt index 0e8b283..5525ee4 100644 --- a/tests/V8SetObject.phpt +++ b/tests/V8SetObject.phpt @@ -109,28 +109,12 @@ Object representation: ---------------------- object(V8\SetObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -213,127 +197,55 @@ Converters: V8\SetObject(V8\Value)->ToBoolean(): object(V8\BooleanValue)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToNumber(): object(V8\NumberValue)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToString(): object(V8\StringValue)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToDetailString(): object(V8\StringValue)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToObject(): object(V8\SetObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#5 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } V8\SetObject(V8\Value)->ToInteger(): object(V8\Int32Value)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToUint32(): object(V8\Int32Value)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToInt32(): object(V8\Int32Value)#121 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\SetObject(V8\Value)->ToArrayIndex(): V8\Exceptions\Exception: Failed to convert diff --git a/tests/V8Source.phpt b/tests/V8Source.phpt index 0523dfd..84da352 100644 --- a/tests/V8Source.phpt +++ b/tests/V8Source.phpt @@ -78,15 +78,7 @@ object(V8\ScriptCompiler\Source)#8 (3) { ["source_string":"V8\ScriptCompiler\Source":private]=> object(V8\StringValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } ["origin":"V8\ScriptCompiler\Source":private]=> @@ -109,15 +101,7 @@ object(V8\ScriptCompiler\Source)#9 (3) { ["source_string":"V8\ScriptCompiler\Source":private]=> object(V8\StringValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } ["origin":"V8\ScriptCompiler\Source":private]=> @@ -162,15 +146,7 @@ object(V8\ScriptCompiler\Source)#8 (3) { ["source_string":"V8\ScriptCompiler\Source":private]=> object(V8\StringValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } ["origin":"V8\ScriptCompiler\Source":private]=> @@ -194,15 +170,7 @@ object(V8\ScriptCompiler\Source)#9 (3) { ["source_string":"V8\ScriptCompiler\Source":private]=> object(V8\StringValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } ["origin":"V8\ScriptCompiler\Source":private]=> diff --git a/tests/V8StringObject.phpt b/tests/V8StringObject.phpt index aae897c..fd0c1fd 100644 --- a/tests/V8StringObject.phpt +++ b/tests/V8StringObject.phpt @@ -61,28 +61,12 @@ Object representation: ---------------------- object(V8\StringObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -96,15 +80,7 @@ Getters: V8\StringObject->ValueOf(): object(V8\StringValue)#119 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\StringValue->Value(): string(11) "test string" diff --git a/tests/V8StringValue.phpt b/tests/V8StringValue.phpt index ddbd99c..012514b 100644 --- a/tests/V8StringValue.phpt +++ b/tests/V8StringValue.phpt @@ -96,15 +96,7 @@ Default constructor: -------------------- object(V8\StringValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } V8\StringValue->Value(): string(0) "" @@ -114,15 +106,7 @@ Object representation: ---------------------- object(V8\StringValue)#5 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } diff --git a/tests/V8SymbolObject.phpt b/tests/V8SymbolObject.phpt index 0d23295..fed97f5 100644 --- a/tests/V8SymbolObject.phpt +++ b/tests/V8SymbolObject.phpt @@ -68,28 +68,12 @@ Object representation: ---------------------- object(V8\SymbolObject)#6 (2) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } ["context":"V8\ObjectValue":private]=> object(V8\Context)#4 (1) { ["isolate":"V8\Context":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } } @@ -103,15 +87,7 @@ Getters: V8\SymbolObject->ValueOf(): object(V8\SymbolValue)#119 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } Symbol name:: string(4) "test" diff --git a/tests/V8SymbolValue.phpt b/tests/V8SymbolValue.phpt index 28a57e9..bb0aecc 100644 --- a/tests/V8SymbolValue.phpt +++ b/tests/V8SymbolValue.phpt @@ -175,15 +175,7 @@ Object representation: ---------------------- object(V8\SymbolValue)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -197,15 +189,7 @@ V8\SymbolValue::GetIsolate() matches expected value V8\SymbolValue->Name(): object(V8\UndefinedValue)#92 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } GetIdentityHash is integer: ok @@ -272,15 +256,7 @@ Object representation: ---------------------- object(V8\SymbolValue)#92 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -293,15 +269,7 @@ V8\SymbolValue::GetIsolate() matches expected value V8\SymbolValue->Name(): object(V8\UndefinedValue)#7 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } GetIdentityHash is integer: ok @@ -368,15 +336,7 @@ Object representation: ---------------------- object(V8\SymbolValue)#7 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -389,15 +349,7 @@ V8\SymbolValue::GetIsolate() matches expected value V8\SymbolValue->Name(): object(V8\StringValue)#8 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } GetIdentityHash is integer: ok @@ -468,15 +420,7 @@ Object representation: ---------------------- object(V8\SymbolValue)#8 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -489,15 +433,7 @@ V8\SymbolValue::GetIsolate() matches expected value V8\SymbolValue->Name(): object(V8\StringValue)#93 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } GetIdentityHash is integer: ok diff --git a/tests/V8TryCatch.phpt b/tests/V8TryCatch.phpt index 9189f15..38fe551 100644 --- a/tests/V8TryCatch.phpt +++ b/tests/V8TryCatch.phpt @@ -71,28 +71,12 @@ Object representation (default): -------------------------------- object(V8\TryCatch)#4 (7) { ["isolate":"V8\TryCatch":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\TryCatch":private]=> object(v8Tests\TrackingDtors\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["exception":"V8\TryCatch":private]=> @@ -123,70 +107,30 @@ Object representation: ---------------------- object(V8\TryCatch)#11 (7) { ["isolate":"V8\TryCatch":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\TryCatch":private]=> object(v8Tests\TrackingDtors\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["exception":"V8\TryCatch":private]=> object(V8\ObjectValue)#5 (2) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } ["context":"V8\ObjectValue":private]=> object(v8Tests\TrackingDtors\Context)#3 (1) { ["isolate":"V8\Context":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } } ["stack_trace":"V8\TryCatch":private]=> object(V8\StringValue)#10 (1) { ["isolate":"V8\Value":private]=> - object(v8Tests\TrackingDtors\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(v8Tests\TrackingDtors\Isolate)#2 (0) { } } ["message":"V8\TryCatch":private]=> diff --git a/tests/V8Uint32Value.phpt b/tests/V8Uint32Value.phpt index a623dc5..e54a934 100644 --- a/tests/V8Uint32Value.phpt +++ b/tests/V8Uint32Value.phpt @@ -72,15 +72,7 @@ Object representation: ---------------------- object(V8\Uint32Value)#4 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -151,15 +143,7 @@ V8\Uint32Value::ToString() converting: -------------------------------------- object(V8\StringValue)#79 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } string(10) "2147483648" diff --git a/tests/V8UnboundScript.phpt b/tests/V8UnboundScript.phpt index 9a70e87..2aa2853 100644 --- a/tests/V8UnboundScript.phpt +++ b/tests/V8UnboundScript.phpt @@ -68,15 +68,7 @@ UnboundScript representation: ----------------------------- object(V8\UnboundScript)#6 (1) { ["isolate":"V8\UnboundScript":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } diff --git a/tests/V8Undefined.phpt b/tests/V8Undefined.phpt index 86573a4..dfe4751 100644 --- a/tests/V8Undefined.phpt +++ b/tests/V8Undefined.phpt @@ -77,15 +77,7 @@ Object representation: ---------------------- object(V8\UndefinedValue)#5 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } @@ -168,15 +160,7 @@ V8\UndefinedValue::ToString() converting: ----------------------------------------- object(V8\StringValue)#88 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#3 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#3 (0) { } } string(9) "undefined" diff --git a/tests/V8UndefinedValue_destruct.phpt b/tests/V8UndefinedValue_destruct.phpt index a4fe813..8b4bf82 100644 --- a/tests/V8UndefinedValue_destruct.phpt +++ b/tests/V8UndefinedValue_destruct.phpt @@ -23,15 +23,7 @@ echo "Done here", PHP_EOL; --EXPECT-- object(v8Tests\TrackingDtors\UndefinedValue)#3 (1) { ["isolate":"V8\Value":private]=> - object(V8\Isolate)#2 (4) { - ["time_limit":"V8\Isolate":private]=> - float(0) - ["time_limit_hit":"V8\Isolate":private]=> - bool(false) - ["memory_limit":"V8\Isolate":private]=> - int(0) - ["memory_limit_hit":"V8\Isolate":private]=> - bool(false) + object(V8\Isolate)#2 (0) { } } UndefinedValue dies now!