Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e92f39d
Remove require $isolate parameter from V8\Value::TypeOf()
pinepain Apr 17, 2017
2f9104b
Add V8\Value::InstanceOf() method
pinepain Apr 17, 2017
f4e652a
Remove deprecated V8\Context::EstimatedSize() method
pinepain Apr 21, 2017
12ccf72
Reformat stubs [skip ci]
pinepain Apr 21, 2017
b310dcf
Remove deprecated V8\StackTrace\StackTraceOptions
pinepain Apr 21, 2017
c1953fe
Add support for EXPECTF test updating from output [skip ci]
pinepain Apr 21, 2017
f090684
Remove deprecated V8\StackTrace::AsArray()
pinepain Apr 21, 2017
b977849
Consistently expose all well-known symbols
pinepain Apr 21, 2017
7bf2bda
Remove unused packages during provision [skip ci]
pinepain Apr 22, 2017
22d62c8
Add V8\ObjectValue::SetNativeDataProperty() method
pinepain Apr 22, 2017
3baa168
Use enum class for callback index in bucket
pinepain Apr 22, 2017
40ba86e
Cleanup leftovers of unsupported and no longer supported methods on V…
pinepain Apr 22, 2017
f660ef7
Add V8\Context::SetSecurityToken() method test
pinepain Apr 22, 2017
b85e1ed
Cleanup tests
pinepain Apr 22, 2017
50d3083
Add V8\ConstructorBehavior
pinepain Apr 22, 2017
b586e70
Setting boolean props on StackFrame with valid type
pinepain Apr 22, 2017
5774a3b
Add V8\FunctionTemplate signature support in ctor (simplified to $rec…
pinepain Apr 22, 2017
d6e6ce4
Remove non-working and non-supporting $attributes argument from V8\St…
pinepain Apr 22, 2017
7d1f899
Add signature support to Tpl:SetNativeDataProperty() and ObjTpl::SetA…
pinepain Apr 22, 2017
c460a09
Move enums into single file or parent class
pinepain Apr 22, 2017
fd538a9
Add property filtering support to V8\ObjectValue::Get{Property,OwnPro…
pinepain Apr 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ project(php_v8)

# NOTE: This CMake file is just for syntax highlighting in CLion

include_directories(/usr/local/opt/v8@5.9/include)
include_directories(/usr/local/opt/v8@5.9/include/libplatform)
include_directories(/usr/local/opt/v8@6.0/include)
include_directories(/usr/local/opt/v8@6.0/include/libplatform)

include_directories(/usr/local/include/php)
include_directories(/usr/local/include/php/TSRM)
Expand Down
7 changes: 1 addition & 6 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ if test "$PHP_V8" != "no"; then
PHP_NEW_EXTENSION(v8, [ \
v8.cc \
src/php_v8_a.cc \
src/php_v8_enums.cc \
src/php_v8_exception.cc \
src/php_v8_ext_mem_interface.cc \
src/php_v8_try_catch.cc \
Expand All @@ -169,7 +170,6 @@ if test "$PHP_V8" != "no"; then
src/php_v8_script.cc \
src/php_v8_unbound_script.cc \
src/php_v8_cached_data.cc \
src/php_v8_compile_options.cc \
src/php_v8_script_compiler.cc \
src/php_v8_source.cc \
src/php_v8_data.cc \
Expand All @@ -184,7 +184,6 @@ if test "$PHP_V8" != "no"; then
src/php_v8_integer.cc \
src/php_v8_int32.cc \
src/php_v8_uint32.cc \
src/php_v8_integrity_level.cc \
src/php_v8_object.cc \
src/php_v8_function.cc \
src/php_v8_array.cc \
Expand All @@ -196,17 +195,13 @@ if test "$PHP_V8" != "no"; then
src/php_v8_boolean_object.cc \
src/php_v8_string_object.cc \
src/php_v8_symbol_object.cc \
src/php_v8_property_attribute.cc \
src/php_v8_template.cc \
src/php_v8_return_value.cc \
src/php_v8_callback_info.cc \
src/php_v8_function_callback_info.cc \
src/php_v8_property_callback_info.cc \
src/php_v8_access_control.cc \
src/php_v8_property_handler_flags.cc \
src/php_v8_named_property_handler_configuration.cc \
src/php_v8_indexed_property_handler_configuration.cc \
src/php_v8_access_type.cc \
], $ext_shared, , -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)

PHP_ADD_BUILD_DIR($ext_builddir/src)
Expand Down
5 changes: 4 additions & 1 deletion scripts/provision/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,7 @@ if [[ -e ~/.phpbrew/bashrc ]]; then
fi
fi

EDITOR=vim
export EDITOR=vim

# To prevent a PHP test suite from asking to send results to the PHP QA team:
export NO_INTERACTION=1
4 changes: 4 additions & 0 deletions scripts/provision/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ sudo add-apt-repository ppa:pinepain/libv8-6.0
# Let's update packages list:
sudo apt-get update

# Remove unused
sudo apt-get remove -y liblxc1 lxc-common lxd lxcfs


# Make sure this system tools installed:
sudo apt-get install -y git htop curl pkgconf

Expand Down
49 changes: 46 additions & 3 deletions scripts/replace_expect.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
*/

$tests_dir = realpath(__DIR__ . '/../tests');
$iterator = new GlobIterator($tests_dir . '/*.out', FilesystemIterator::KEY_AS_FILENAME);


if ($argc == 2) {
$mask = str_replace(['tests/', '.phpt', '.diff'], '', $argv[1]);
} else {
$mask = '*';
}

$iterator = new GlobIterator($tests_dir . "/{$mask}.out", FilesystemIterator::KEY_AS_FILENAME);

foreach ($iterator as $item) {
//var_dump($item);
Expand All @@ -35,7 +43,42 @@
foreach (['.diff', '.exp', '.log', '.mem', '.out', '.php', '.sh'] as $ext) {
@unlink($tests_dir. '/'.$base_name . $ext);
}
} else {
printf("please, edit manually [%s]".PHP_EOL, $iterator->key());

continue;
} elseif (false !== ($pos = strpos($test_content, '--EXPECTF--'))) {

printf("--EXPECTF-- [%s]".PHP_EOL, $iterator->key());

// get replacements

$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());
continue;
}

foreach (array_combine($expectf_search[1], $expectf_replace[1]) as $search => $replace) {
$result = preg_replace($search, $replace, $result);
}

$test_content = $tests;
$test_content .= '--EXPECTF--'.PHP_EOL;
$test_content .= $result;
$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);
}

continue;
}

printf("please, edit manually [%s]".PHP_EOL, $iterator->key());
}
38 changes: 0 additions & 38 deletions src/php_v8_access_control.cc

This file was deleted.

37 changes: 0 additions & 37 deletions src/php_v8_access_control.h

This file was deleted.

41 changes: 0 additions & 41 deletions src/php_v8_access_type.cc

This file was deleted.

36 changes: 0 additions & 36 deletions src/php_v8_access_type.h

This file was deleted.

Loading