phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

V8JS not working on Debian ~ #381

Closed Stasuart closed 5 years ago

Stasuart commented 6 years ago

Hello there, I got stuck during installation of the extension and will really appreciate for any of your help. The problem is library seems to be installed but completely not working, mean when I do execute a new class V8Js() inside php file browser it shows 503 error

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

By the way, I strictly followed README.Linux.md guide in order to go through all installation processes.

1. compiled V8 manually (path: /opt/v8) 2. compiled php-v8js itself : ./configure --with-php-config=/opt/bitnami/php/bin/php-config --with-v8js=/opt/v8 LDFLAGS="-lstdc++"

Output:

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/bitnami/php
checking for PHP includes... -I/opt/bitnami/php/include/php -I/opt/bitnami/php/include/php/main -I/opt/bitnami/php/include/php/TSRM -I/opt/bitnami/php/include/php/Zend -I/opt/bitnami/php/include/php/ext -I/opt/bitnami/php/include/php/ext/date/lib
checking for PHP extension directory... /opt/bitnami/php/lib/php/extensions
checking for PHP installed headers prefix... /opt/bitnami/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for V8 Javascript Engine... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for C standard version... c++11
checking how to allow c++11 narrowing... -Wno-narrowing
checking for libv8_libplatform... found
checking for V8 version... 6.5.1
configure: WARNING: libv8 6.5.x prior to 6.5.143 is missing speculative execution mitigations
checking for natives_blob.bin... found (/opt/v8/lib/natives_blob.bin)
checking for snapshot_blob.bin... found (/opt/v8/lib/snapshot_blob.bin)
checking for v8::ArrayBuffer::Allocator::NewDefaultAllocator... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged

3. After running 'make test' almost all tests are failed:

Build complete.
Don't forget to run 'make test'.

=====================================================================
PHP         : /opt/bitnami/php/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 7.0.29
ZEND_VERSION: 3.0.0
PHP_OS      : Linux - Linux v-sites-vm 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64
INI actual  : /tmp/v8js/tmp-php.ini
More .INIs  :   
---------------------------------------------------------------------
PHP         : /opt/bitnami/php/bin/phpdbg 
PHP_SAPI    : phpdbg
PHP_VERSION : 7.0.29
ZEND_VERSION: 3.0.0
PHP_OS      : Linux - Linux v-sites-vm 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64
INI actual  : /tmp/v8js/tmp-php.ini
More .INIs  : 
---------------------------------------------------------------------
CWD         : /tmp/v8js
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2018-11-05 17:15:24
=====================================================================
FAIL Test V8::executeString() : Check ArrayAccess interface wrapping [tests/array_access.phpt] 
FAIL Test V8::executeString() : Check ArrayAccess live binding [tests/array_access_001.phpt] 
FAIL Test V8::executeString() : Use ArrayAccess with JavaScript native push method [tests/array_access_002.phpt] 
FAIL Test V8::executeString() : Export PHP methods on ArrayAccess objects [tests/array_access_003.phpt] 
FAIL Test V8::executeString() : Export PHP properties on ArrayAccess objects [tests/array_access_004.phpt] 
FAIL Test V8::executeString() : Export __invoke method on ArrayAccess objects [tests/array_access_005.phpt] 
FAIL Test V8::executeString() : Enumerate ArrayAccess keys [tests/array_access_006.phpt] 
FAIL Test V8::executeString() : Delete (unset) ArrayAccess keys [tests/array_access_007.phpt] 
FAIL Test V8::executeString() : in array (isset) behaviour of ArrayAccess [tests/array_access_008.phpt] 
FAIL Test V8::executeString() : Check array access setter behaviour [tests/array_access_basic2.phpt] 
FAIL Test V8::executeString() : Check passing array from JS to PHP [tests/array_pass.phpt] 
FAIL Test V8::executeString() : Check passing array from JS to PHP (using force array flag) [tests/array_pass_flags.phpt] 
FAIL Test V8::executeString() : export of recursive array [tests/array_recursive.phpt] 
FAIL Test V8::executeString() : Simple test [tests/basic.phpt] 
FAIL Test V8::executeString() : Call JS from PHP [tests/callbacks.phpt] 
FAIL Test V8::executeString() : Script validator test [tests/checkstring.phpt] 
FAIL Test V8::executeString() : Script validator test using compileString [tests/checkstring_compile.phpt] 
FAIL Test V8::executeString() : Simple test [tests/closures_basic.phpt] 
FAIL Test V8::executeString() : Dynamic closure call test [tests/closures_dynamic.phpt] 
FAIL Test V8Js::setModuleLoader : Returned modules are cached [tests/commonjs_caching_001.phpt] 
FAIL Test V8Js::setModuleLoader : module cache seperated per isolate [tests/commonjs_caching_002.phpt] 
FAIL Test V8Js::setModuleNormaliser : Custom normalisation #001 [tests/commonjs_cust_normalise_001.phpt] 
FAIL Test V8Js::setModuleNormaliser : Custom normalisation #002 [tests/commonjs_cust_normalise_002.phpt] 
FAIL Test V8Js::setModuleNormaliser : Custom normalisation #003 [tests/commonjs_cust_normalise_003.phpt] 
FAIL Test V8Js::setModuleNormaliser : Custom normalisation #004 [tests/commonjs_cust_normalise_004.phpt] 
FAIL Test V8Js::setModuleLoader : Forward exceptions [tests/commonjs_exception_001.phpt] 
FAIL Test V8Js::setModuleNormaliser : Forward exceptions [tests/commonjs_exception_002.phpt] 
FAIL Test V8Js::setModuleLoader : Handle fatal errors gracefully [tests/commonjs_fatal_error.phpt] 
FAIL Test V8Js::setModuleLoader : CommonJS modules [tests/commonjs_modules.phpt] 
FAIL Test V8Js::setModuleLoader : Assign result multiple times [tests/commonjs_multiassign.phpt] 
FAIL Test V8Js::setModuleLoader : Native Module basic behaviour [tests/commonjs_native_basic.phpt] 
FAIL Test V8Js::setModuleLoader : this === module.exports [tests/commonjs_node_compat_001.phpt] 
FAIL Test V8Js::setModuleLoader : modules can return arbitrary values [tests/commonjs_node_compat_002.phpt] 
FAIL Test V8Js::setModuleLoader : delete module.exports yields undefined [tests/commonjs_node_compat_003.phpt] 
FAIL Test V8Js::setModuleLoader : exports/module.exports behaviour [tests/commonjs_node_compat_basic.phpt] 
FAIL Test V8Js::setModuleLoader : Path normalisation #001 [tests/commonjs_normalise_001.phpt] 
FAIL Test V8Js::setModuleLoader : Path normalisation #002 [tests/commonjs_normalise_002.phpt] 
FAIL Test V8Js::setModuleLoader : Path normalisation #003 [tests/commonjs_normalise_003.phpt] 
FAIL Test V8Js::setModuleLoader : Path normalisation #004 [tests/commonjs_normalise_004.phpt] 
FAIL Test V8Js::setModuleLoader : Path normalisation #005 [tests/commonjs_normalise_005.phpt] 
FAIL Test V8Js::setModuleLoader : Module source naming [tests/commonjs_source_naming.phpt] 
FAIL Test V8::compileString() : Compile and run a script [tests/compile_string.phpt] 
FAIL Test V8::compileString() : Check compiled script isolate processing [tests/compile_string_isolate.phpt] 
FAIL Test V8::executeString() : Calling construct twice [tests/construct.phpt] 
FAIL Test V8::executeString() : test context preserving [tests/context_preserving.phpt] 
FAIL Test V8::executeString() : test context separation [tests/context_separation.phpt] 
FAIL Test V8::executeString() : correct temp context construction [tests/context_temp_creation.phpt] 
FAIL Test V8Js::createSnapshot() : Basic snapshot creation & re-use [tests/create_snapshot_basic.phpt] 
FAIL Test V8::executeString() : Testing lifespan of V8Js context objects [tests/ctx_lifetime.phpt] 
FAIL Test V8::executeString() : Pass JS date to PHP [tests/datetime_pass.phpt] 
FAIL Test V8::executeString() : Properties on derived class [tests/derived_class_properties.phpt] 
FAIL Test V8::executeString() : Extra properties on derived class [tests/derived_class_properties_extra.phpt] 
FAIL Test V8::executeString() : Initialized properties on derived class [tests/derived_class_properties_init.phpt] 
FAIL Test V8::executeString() : Protected and private properties on derived class [tests/derived_class_properties_protected.phpt] 
FAIL Test V8::executeString() : Handle die() gracefully [tests/die.phpt] 
FAIL Test V8::executeString() : direct construction is prohibited [tests/direct_construct.phpt] 
FAIL Test V8::executeString() : V8JsScriptException [tests/exception.phpt] 
FAIL Test V8::executeString() : Exception clearing test [tests/exception_clearing.phpt] 
FAIL Test V8::executeString() : Exception propagation test 1 [tests/exception_propagation_1.phpt] 
FAIL Test V8::executeString() : Exception propagation test 2 [tests/exception_propagation_2.phpt] 
FAIL Test V8::executeString() : Exception propagation test 3 [tests/exception_propagation_3.phpt] 
FAIL Test V8::executeString() : Test getJsStartColumn on script exception [tests/exception_start_column.phpt] 
FAIL Test V8::executeString() : Forcing to arrays (return value conversion) [tests/execute_flags.phpt] 
FAIL Test V8::executeString() : Forcing to arrays (argument passing) [tests/execute_flags_args.phpt] 
FAIL Test V8::executeString() : Forcing to arrays (property writing) [tests/execute_flags_property_writing.phpt] 
FAIL Test V8::registerExtension() : Basic extension registering [tests/extensions_basic.phpt] 
FAIL Test V8::registerExtension() : Circular dependencies [tests/extensions_circular_dependency.phpt] 
SKIP Test V8::registerExtension() : Register extension with errors [tests/extensions_error.phpt] reason: too old V8 version
FAIL Test V8::executeString() : Fatal Error handler to ignore warnings [tests/fatal_error_ignore_non_fatals.phpt] 
FAIL Test V8::executeString() : Fatal Error handler not to uninstall on inner frames [tests/fatal_error_no_uninstall_inner_frame.phpt] 
FAIL Test V8::executeString() : Fatal Error with recursive executeString calls [tests/fatal_error_recursive.phpt] 
FAIL Test V8::executeString() : Fatal Error rethrowing [tests/fatal_error_rethrow.phpt] 
FAIL Test V8::executeString() : Fatal Error handler must be uninstalled when leaving outermost frame [tests/fatal_error_uninstall_in_first_frame.phpt] 
FAIL Test V8Function() : Handle fatal errors gracefully [tests/fatal_error_v8function.phpt] 
FAIL Test V8::executeString() : Call passed-back function (directly) [tests/function_call.phpt] 
FAIL Test V8::executeString() : Call passed-back function [tests/function_passback.phpt] 
FAIL Test V8::executeString() : Call passed-back function (property access) [tests/function_passback2.phpt] 
FAIL Test V8::executeString() : Set property on function [tests/function_properties.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (foreach) [tests/generators_from_v8_001.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (direct) [tests/generators_from_v8_002.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (rewind) [tests/generators_from_v8_003.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + foreach) [tests/generators_from_v8_004.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + iterate in JS) [tests/generators_from_v8_005.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (yield from) [tests/generators_from_v8_006.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (throw JS) [tests/generators_from_v8_007.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (throw PHP) [tests/generators_from_v8_008.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (fatal error) [tests/generators_from_v8_009.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP (properties) [tests/generators_from_v8_010.phpt] 
FAIL Test V8::executeString() : Generators V8 -> PHP [tests/generators_from_v8_basic.phpt] 
FAIL Test V8::executeString() : Generators PHP -> V8 (instantite in JS) [tests/generators_to_v8_001.phpt] 
FAIL Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP) [tests/generators_to_v8_002.phpt] 
FAIL Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP) [tests/generators_to_v8_003.phpt] 
FAIL Test V8::executeString() : Generators PHP -> V8 (yield from) [tests/generators_to_v8_004.phpt] 
FAIL Test V8::executeString() : Generators PHP -> V8 [tests/generators_to_v8_basic.phpt] 
FAIL Test V8::executeString() : PHP variables via get accessor [tests/get_accessor.phpt] 
FAIL Test V8::executeString() : Get constructor method [tests/get_constructor.phpt] 
FAIL Test V8Js::executeString : Global scope links global object [tests/global_object_basic.phpt] 
FAIL Test V8::executeString() : has_property after dispose [tests/has_property_after_dispose.phpt] 
PASS Test V8Js : class inheritance [tests/inheritance_basic.phpt] 
FAIL Test V8::executeString() : Issue #116 V8Function injection into other V8Js [tests/issue_116-v8function-injection.phpt] 
FAIL Test V8Function::__call() : Check v8::TryCatch behaviour [tests/issue_127_001.phpt] 
FAIL Test V8::executeString() : Issue #160 V8Function affected by V8Js::FLAG_FORCE_ARRAY [tests/issue_160_basic.phpt] 
FAIL Test V8::executeString() : Method access on derived classes (protected) [tests/issue_183_001.phpt] 
FAIL Test V8::executeString() : Method access on derived classes (private) [tests/issue_183_002.phpt] 
FAIL Test V8::executeString() : Method access on derived classes (V8Js methods) [tests/issue_183_003.phpt] 
FAIL Test V8::executeString() : Method access on derived classes (overridden V8Js methods) [tests/issue_183_004.phpt] 
PASS Test V8::executeString() : Method access on derived classes (__sleep) [tests/issue_183_005.phpt] 
PASS Test V8::executeString() : Method access on derived classes (__wakeup) [tests/issue_183_006.phpt] 
FAIL Test V8::executeString() : Method access on derived classes [tests/issue_183_basic.phpt] 
FAIL Test V8::executeString() : Issue #185 this on direct invocation of method [tests/issue_185_001.phpt] 
FAIL Test V8::executeString() : Issue #185 this on function invocation [tests/issue_185_002.phpt] 
FAIL Test V8::executeString() : Issue #185 Wrong this on V8Object method invocation [tests/issue_185_basic.phpt] 
FAIL Test V8::executeString() : Handle Z_TYPE == IS_REFERENCE (issue #246) [tests/issue_246_001.phpt] 
FAIL Test V8::executeString() : Issue #250 (early free of array) [tests/issue_250_001.phpt] 
FAIL Test V8::executeString() : Issue #250 (early free of array) [tests/issue_250_002.phpt] 
FAIL Test V8::executeString() : Issue #306 V8 crashing on toLocaleString() [tests/issue_306_basic.phpt] 
FAIL Test V8::executeString() : Issue #316 endless property iteration [tests/issue_316_basic.phpt] 
FAIL Test V8Js::setModuleNormaliser : Custom normalisation #005 [tests/issue_349_basic.phpt] 
FAIL Test V8::executeString() : Test PHP object construction controlled by JavaScript (simple) [tests/js-construct-basic.phpt] 
FAIL Test V8::executeString() : Test PHP object construction controlled by JavaScript (non-construction call) [tests/js-construct-direct-call.phpt] 
FAIL Test V8::executeString() : Test PHP object construction controlled by JavaScript (protected ctor) [tests/js-construct-protected-ctor.phpt] 
FAIL Test V8::executeString() : Test PHP object construction controlled by JavaScript (with ctor) [tests/js-construct-with-ctor.phpt] 
FAIL Test V8::executeString() : Test for leaked PHP object if passed back multiple times [tests/leak-php-object.phpt] 
FAIL Test V8::executeString() : Check long integer handling from PHP to JS [tests/long.phpt] 
FAIL Test V8::executeString() : Check long 64-bit export from PHP to JS [tests/long_int64.phpt] 
FAIL Test V8::executeString() : Memory limit [tests/memory_limit.phpt] 
FAIL Test V8::executeString() : Use multiple V8js instances with objects [tests/multi-object.phpt] 
FAIL Test V8::executeString() : Use multiple V8js instances [tests/multi.phpt] 
FAIL Test V8::executeString() : Pass strings with null-bytes [tests/null_byte_string.phpt] 
FAIL Test V8::executeString() : Object passed from PHP [tests/object.phpt] 
FAIL Test V8::executeString() : DOM object passed from PHP [tests/object_dom.phpt] 
FAIL Test V8::executeString() : Calling methods of object passed from PHP [tests/object_method_call.phpt] 
FAIL Test V8::executeString() : Object passing PHP > JS > PHP [tests/object_passback.phpt] 
FAIL Test V8::executeString() : Object passing JS > PHP > JS [tests/object_passback_002.phpt] 
FAIL Test V8::executeString() : Prototype with PHP callbacks [tests/object_prototype.phpt] 
FAIL Test V8::executeString() : Test PHP object reusage [tests/object_reuse.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (repeated) [tests/php_exceptions_001.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (multi-level) [tests/php_exceptions_002.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (basic JS propagation) [tests/php_exceptions_003.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (PHP->JS->PHP back propagation) [tests/php_exceptions_004.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (JS throw PHP-exception) [tests/php_exceptions_005.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (JS throws normal PHP-object) [tests/php_exceptions_006.phpt] 
FAIL Test V8::executeString() : PHP Exception handling (basic) [tests/php_exceptions_basic.phpt] 
FAIL Test V8::executeString() : property_exists/isset/empty on wrapped JS objects [tests/property_exists.phpt] 
FAIL Test V8::executeString() : Property visibility - delete [tests/property_visibility-delete.phpt] 
FAIL Test V8::executeString() : Property visibility - enumerate [tests/property_visibility-enumerate.phpt] 
FAIL Test V8::executeString() : Property visibility - has property [tests/property_visibility-has-property.phpt] 
FAIL Test V8::executeString() : Property visibility - set [tests/property_visibility-set.phpt] 
FAIL Test V8::executeString() : Property visibility [tests/property_visibility.phpt] 
FAIL Test V8::executeString() : Property visibility __get [tests/property_visibility__get.phpt] 
FAIL Test V8::executeString() : Property visibility __set [tests/property_visibility__set.phpt] 
SKIP Test V8::executeString() : Pthreads test #1 [tests/pthreads_001.phpt] reason: pthreads extension required
FAIL Test V8::executeString() : Regression #121 Z_ADDREF_P [tests/regression_121.phpt] 
FAIL Test V8::executeString() : return this (aka fluent setters, JS-side) [tests/return_this_001.phpt] 
FAIL Test V8::executeString() : return $this (aka fluent setters) [tests/return_this_basic.phpt] 
FAIL Test V8::executeString() : Return values [tests/return_value.phpt] 
FAIL Test serialize(V8Object) : __sleep and __wakeup throw [tests/serialize_001.phpt] 
FAIL Test serialize(V8Function) : __sleep and __wakeup throw [tests/serialize_002.phpt] 
FAIL Test serialize(V8Js) : __sleep and __wakeup throw [tests/serialize_basic.phpt] 
FAIL Test V8::setAverageObjectSize() : Average object size can be set on V8Js object [tests/set_average_object_size_basic.phpt] 
FAIL Test V8::setMemoryLimit() : Memory limit applied to V8Function calls [tests/set_memory_limit_001.phpt] 
FAIL Test V8::setMemoryLimit() : Memory limit can be imposed later [tests/set_memory_limit_003.phpt] 
FAIL Test V8::setMemoryLimit() : Memory limit can be set on V8Js object [tests/set_memory_limit_basic.phpt] 
FAIL Test V8::setTimeLimit() : Time limit applied to V8Function calls [tests/set_time_limit_001.phpt] 
FAIL Test V8::setTimeLimit() : Time limit can be changed [tests/set_time_limit_002.phpt] 
FAIL Test V8::setTimeLimit() : Time limit can be imposed later on [tests/set_time_limit_003.phpt] 
FAIL Test V8::setTimeLimit() : Time limit can be prolonged [tests/set_time_limit_004.phpt] 
FAIL Test V8::setTimeLimit() : Time limit can be set on V8Js object [tests/set_time_limit_basic.phpt] 
FAIL Test V8::executeString() : Time limit [tests/time_limit.phpt] 
FAIL Test V8::executeString() : Check timezone handling [tests/timezones.phpt] 
FAIL Test V8::executeString() : Check if imported code works with umlauts [tests/unicode.phpt] 
FAIL Test V8::executeString() : Use after dispose [tests/use_after_dispose.phpt] 
FAIL Test V8::executeString() : unset property on V8Object [tests/v8_unset_property.phpt] 
FAIL Test V8::executeString() : write property on V8Object [tests/v8_write_property.phpt] 
FAIL Test V8::executeString() : var_dump [tests/var_dump.phpt] 
SKIP Test V8::executeString() : var_dump [tests/var_dump_73.phpt] reason: Only for php version >= 7.3
FAIL Test V8::executeString() : simple variables passed from PHP [tests/variable_passing.phpt] 
=====================================================================
TIME END 2018-11-05 17:15:32

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   53
---------------------------------------------------------------------

Number of tests :  177               174
Tests skipped   :    3 (  1.7%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :  171 ( 96.6%) ( 98.3%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    3 (  1.7%) (  1.7%)
---------------------------------------------------------------------
Time taken      :    8 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test V8::executeString() : Check ArrayAccess interface wrapping [tests/array_access.phpt]
Test V8::executeString() : Check ArrayAccess live binding [tests/array_access_001.phpt]
Test V8::executeString() : Use ArrayAccess with JavaScript native push method [tests/array_access_002.phpt]
Test V8::executeString() : Export PHP methods on ArrayAccess objects [tests/array_access_003.phpt]
Test V8::executeString() : Export PHP properties on ArrayAccess objects [tests/array_access_004.phpt]
Test V8::executeString() : Export __invoke method on ArrayAccess objects [tests/array_access_005.phpt]
Test V8::executeString() : Enumerate ArrayAccess keys [tests/array_access_006.phpt]
Test V8::executeString() : Delete (unset) ArrayAccess keys [tests/array_access_007.phpt]
Test V8::executeString() : in array (isset) behaviour of ArrayAccess [tests/array_access_008.phpt]
Test V8::executeString() : Check array access setter behaviour [tests/array_access_basic2.phpt]
Test V8::executeString() : Check passing array from JS to PHP [tests/array_pass.phpt]
Test V8::executeString() : Check passing array from JS to PHP (using force array flag) [tests/array_pass_flags.phpt]
Test V8::executeString() : export of recursive array [tests/array_recursive.phpt]
Test V8::executeString() : Simple test [tests/basic.phpt]
Test V8::executeString() : Call JS from PHP [tests/callbacks.phpt]
Test V8::executeString() : Script validator test [tests/checkstring.phpt]
Test V8::executeString() : Script validator test using compileString [tests/checkstring_compile.phpt]
Test V8::executeString() : Simple test [tests/closures_basic.phpt]
Test V8::executeString() : Dynamic closure call test [tests/closures_dynamic.phpt]
Test V8Js::setModuleLoader : Returned modules are cached [tests/commonjs_caching_001.phpt]
Test V8Js::setModuleLoader : module cache seperated per isolate [tests/commonjs_caching_002.phpt]
Test V8Js::setModuleNormaliser : Custom normalisation #001 [tests/commonjs_cust_normalise_001.phpt]
Test V8Js::setModuleNormaliser : Custom normalisation #002 [tests/commonjs_cust_normalise_002.phpt]
Test V8Js::setModuleNormaliser : Custom normalisation #003 [tests/commonjs_cust_normalise_003.phpt]
Test V8Js::setModuleNormaliser : Custom normalisation #004 [tests/commonjs_cust_normalise_004.phpt]
Test V8Js::setModuleLoader : Forward exceptions [tests/commonjs_exception_001.phpt]
Test V8Js::setModuleNormaliser : Forward exceptions [tests/commonjs_exception_002.phpt]
Test V8Js::setModuleLoader : Handle fatal errors gracefully [tests/commonjs_fatal_error.phpt]
Test V8Js::setModuleLoader : CommonJS modules [tests/commonjs_modules.phpt]
Test V8Js::setModuleLoader : Assign result multiple times [tests/commonjs_multiassign.phpt]
Test V8Js::setModuleLoader : Native Module basic behaviour [tests/commonjs_native_basic.phpt]
Test V8Js::setModuleLoader : this === module.exports [tests/commonjs_node_compat_001.phpt]
Test V8Js::setModuleLoader : modules can return arbitrary values [tests/commonjs_node_compat_002.phpt]
Test V8Js::setModuleLoader : delete module.exports yields undefined [tests/commonjs_node_compat_003.phpt]
Test V8Js::setModuleLoader : exports/module.exports behaviour [tests/commonjs_node_compat_basic.phpt]
Test V8Js::setModuleLoader : Path normalisation #001 [tests/commonjs_normalise_001.phpt]
Test V8Js::setModuleLoader : Path normalisation #002 [tests/commonjs_normalise_002.phpt]
Test V8Js::setModuleLoader : Path normalisation #003 [tests/commonjs_normalise_003.phpt]
Test V8Js::setModuleLoader : Path normalisation #004 [tests/commonjs_normalise_004.phpt]
Test V8Js::setModuleLoader : Path normalisation #005 [tests/commonjs_normalise_005.phpt]
Test V8Js::setModuleLoader : Module source naming [tests/commonjs_source_naming.phpt]
Test V8::compileString() : Compile and run a script [tests/compile_string.phpt]
Test V8::compileString() : Check compiled script isolate processing [tests/compile_string_isolate.phpt]
Test V8::executeString() : Calling construct twice [tests/construct.phpt]
Test V8::executeString() : test context preserving [tests/context_preserving.phpt]
Test V8::executeString() : test context separation [tests/context_separation.phpt]
Test V8::executeString() : correct temp context construction [tests/context_temp_creation.phpt]
Test V8Js::createSnapshot() : Basic snapshot creation & re-use [tests/create_snapshot_basic.phpt]
Test V8::executeString() : Testing lifespan of V8Js context objects [tests/ctx_lifetime.phpt]
Test V8::executeString() : Pass JS date to PHP [tests/datetime_pass.phpt]
Test V8::executeString() : Properties on derived class [tests/derived_class_properties.phpt]
Test V8::executeString() : Extra properties on derived class [tests/derived_class_properties_extra.phpt]
Test V8::executeString() : Initialized properties on derived class [tests/derived_class_properties_init.phpt]
Test V8::executeString() : Protected and private properties on derived class [tests/derived_class_properties_protected.phpt]
Test V8::executeString() : Handle die() gracefully [tests/die.phpt]
Test V8::executeString() : direct construction is prohibited [tests/direct_construct.phpt]
Test V8::executeString() : V8JsScriptException [tests/exception.phpt]
Test V8::executeString() : Exception clearing test [tests/exception_clearing.phpt]
Test V8::executeString() : Exception propagation test 1 [tests/exception_propagation_1.phpt]
Test V8::executeString() : Exception propagation test 2 [tests/exception_propagation_2.phpt]
Test V8::executeString() : Exception propagation test 3 [tests/exception_propagation_3.phpt]
Test V8::executeString() : Test getJsStartColumn on script exception [tests/exception_start_column.phpt]
Test V8::executeString() : Forcing to arrays (return value conversion) [tests/execute_flags.phpt]
Test V8::executeString() : Forcing to arrays (argument passing) [tests/execute_flags_args.phpt]
Test V8::executeString() : Forcing to arrays (property writing) [tests/execute_flags_property_writing.phpt]
Test V8::registerExtension() : Basic extension registering [tests/extensions_basic.phpt]
Test V8::registerExtension() : Circular dependencies [tests/extensions_circular_dependency.phpt]
Test V8::executeString() : Fatal Error handler to ignore warnings [tests/fatal_error_ignore_non_fatals.phpt]
Test V8::executeString() : Fatal Error handler not to uninstall on inner frames [tests/fatal_error_no_uninstall_inner_frame.phpt]
Test V8::executeString() : Fatal Error with recursive executeString calls [tests/fatal_error_recursive.phpt]
Test V8::executeString() : Fatal Error rethrowing [tests/fatal_error_rethrow.phpt]
Test V8::executeString() : Fatal Error handler must be uninstalled when leaving outermost frame [tests/fatal_error_uninstall_in_first_frame.phpt]
Test V8Function() : Handle fatal errors gracefully [tests/fatal_error_v8function.phpt]
Test V8::executeString() : Call passed-back function (directly) [tests/function_call.phpt]
Test V8::executeString() : Call passed-back function [tests/function_passback.phpt]
Test V8::executeString() : Call passed-back function (property access) [tests/function_passback2.phpt]
Test V8::executeString() : Set property on function [tests/function_properties.phpt]
Test V8::executeString() : Generators V8 -> PHP (foreach) [tests/generators_from_v8_001.phpt]
Test V8::executeString() : Generators V8 -> PHP (direct) [tests/generators_from_v8_002.phpt]
Test V8::executeString() : Generators V8 -> PHP (rewind) [tests/generators_from_v8_003.phpt]
Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + foreach) [tests/generators_from_v8_004.phpt]
Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + iterate in JS) [tests/generators_from_v8_005.phpt]
Test V8::executeString() : Generators V8 -> PHP (yield from) [tests/generators_from_v8_006.phpt]
Test V8::executeString() : Generators V8 -> PHP (throw JS) [tests/generators_from_v8_007.phpt]
Test V8::executeString() : Generators V8 -> PHP (throw PHP) [tests/generators_from_v8_008.phpt]
Test V8::executeString() : Generators V8 -> PHP (fatal error) [tests/generators_from_v8_009.phpt]
Test V8::executeString() : Generators V8 -> PHP (properties) [tests/generators_from_v8_010.phpt]
Test V8::executeString() : Generators V8 -> PHP [tests/generators_from_v8_basic.phpt]
Test V8::executeString() : Generators PHP -> V8 (instantite in JS) [tests/generators_to_v8_001.phpt]
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP) [tests/generators_to_v8_002.phpt]
Test V8::executeString() : Generators PHP -> V8 (instantiate in JS, iterate in PHP) [tests/generators_to_v8_003.phpt]
Test V8::executeString() : Generators PHP -> V8 (yield from) [tests/generators_to_v8_004.phpt]
Test V8::executeString() : Generators PHP -> V8 [tests/generators_to_v8_basic.phpt]
Test V8::executeString() : PHP variables via get accessor [tests/get_accessor.phpt]
Test V8::executeString() : Get constructor method [tests/get_constructor.phpt]
Test V8Js::executeString : Global scope links global object [tests/global_object_basic.phpt]
Test V8::executeString() : has_property after dispose [tests/has_property_after_dispose.phpt]
Test V8::executeString() : Issue #116 V8Function injection into other V8Js [tests/issue_116-v8function-injection.phpt]
Test V8Function::__call() : Check v8::TryCatch behaviour [tests/issue_127_001.phpt]
Test V8::executeString() : Issue #160 V8Function affected by V8Js::FLAG_FORCE_ARRAY [tests/issue_160_basic.phpt]
Test V8::executeString() : Method access on derived classes (protected) [tests/issue_183_001.phpt]
Test V8::executeString() : Method access on derived classes (private) [tests/issue_183_002.phpt]
Test V8::executeString() : Method access on derived classes (V8Js methods) [tests/issue_183_003.phpt]
Test V8::executeString() : Method access on derived classes (overridden V8Js methods) [tests/issue_183_004.phpt]
Test V8::executeString() : Method access on derived classes [tests/issue_183_basic.phpt]
Test V8::executeString() : Issue #185 this on direct invocation of method [tests/issue_185_001.phpt]
Test V8::executeString() : Issue #185 this on function invocation [tests/issue_185_002.phpt]
Test V8::executeString() : Issue #185 Wrong this on V8Object method invocation [tests/issue_185_basic.phpt]
Test V8::executeString() : Handle Z_TYPE == IS_REFERENCE (issue #246) [tests/issue_246_001.phpt]
Test V8::executeString() : Issue #250 (early free of array) [tests/issue_250_001.phpt]
Test V8::executeString() : Issue #250 (early free of array) [tests/issue_250_002.phpt]
Test V8::executeString() : Issue #306 V8 crashing on toLocaleString() [tests/issue_306_basic.phpt]
Test V8::executeString() : Issue #316 endless property iteration [tests/issue_316_basic.phpt]
Test V8Js::setModuleNormaliser : Custom normalisation #005 [tests/issue_349_basic.phpt]
Test V8::executeString() : Test PHP object construction controlled by JavaScript (simple) [tests/js-construct-basic.phpt]
Test V8::executeString() : Test PHP object construction controlled by JavaScript (non-construction call) [tests/js-construct-direct-call.phpt]
Test V8::executeString() : Test PHP object construction controlled by JavaScript (protected ctor) [tests/js-construct-protected-ctor.phpt]
Test V8::executeString() : Test PHP object construction controlled by JavaScript (with ctor) [tests/js-construct-with-ctor.phpt]
Test V8::executeString() : Test for leaked PHP object if passed back multiple times [tests/leak-php-object.phpt]
Test V8::executeString() : Check long integer handling from PHP to JS [tests/long.phpt]
Test V8::executeString() : Check long 64-bit export from PHP to JS [tests/long_int64.phpt]
Test V8::executeString() : Memory limit [tests/memory_limit.phpt]
Test V8::executeString() : Use multiple V8js instances with objects [tests/multi-object.phpt]
Test V8::executeString() : Use multiple V8js instances [tests/multi.phpt]
Test V8::executeString() : Pass strings with null-bytes [tests/null_byte_string.phpt]
Test V8::executeString() : Object passed from PHP [tests/object.phpt]
Test V8::executeString() : DOM object passed from PHP [tests/object_dom.phpt]
Test V8::executeString() : Calling methods of object passed from PHP [tests/object_method_call.phpt]
Test V8::executeString() : Object passing PHP > JS > PHP [tests/object_passback.phpt]
Test V8::executeString() : Object passing JS > PHP > JS [tests/object_passback_002.phpt]
Test V8::executeString() : Prototype with PHP callbacks [tests/object_prototype.phpt]
Test V8::executeString() : Test PHP object reusage [tests/object_reuse.phpt]
Test V8::executeString() : PHP Exception handling (repeated) [tests/php_exceptions_001.phpt]
Test V8::executeString() : PHP Exception handling (multi-level) [tests/php_exceptions_002.phpt]
Test V8::executeString() : PHP Exception handling (basic JS propagation) [tests/php_exceptions_003.phpt]
Test V8::executeString() : PHP Exception handling (PHP->JS->PHP back propagation) [tests/php_exceptions_004.phpt]
Test V8::executeString() : PHP Exception handling (JS throw PHP-exception) [tests/php_exceptions_005.phpt]
Test V8::executeString() : PHP Exception handling (JS throws normal PHP-object) [tests/php_exceptions_006.phpt]
Test V8::executeString() : PHP Exception handling (basic) [tests/php_exceptions_basic.phpt]
Test V8::executeString() : property_exists/isset/empty on wrapped JS objects [tests/property_exists.phpt]
Test V8::executeString() : Property visibility - delete [tests/property_visibility-delete.phpt]
Test V8::executeString() : Property visibility - enumerate [tests/property_visibility-enumerate.phpt]
Test V8::executeString() : Property visibility - has property [tests/property_visibility-has-property.phpt]
Test V8::executeString() : Property visibility - set [tests/property_visibility-set.phpt]
Test V8::executeString() : Property visibility [tests/property_visibility.phpt]
Test V8::executeString() : Property visibility __get [tests/property_visibility__get.phpt]
Test V8::executeString() : Property visibility __set [tests/property_visibility__set.phpt]
Test V8::executeString() : Regression #121 Z_ADDREF_P [tests/regression_121.phpt]
Test V8::executeString() : return this (aka fluent setters, JS-side) [tests/return_this_001.phpt]
Test V8::executeString() : return $this (aka fluent setters) [tests/return_this_basic.phpt]
Test V8::executeString() : Return values [tests/return_value.phpt]
Test serialize(V8Object) : __sleep and __wakeup throw [tests/serialize_001.phpt]
Test serialize(V8Function) : __sleep and __wakeup throw [tests/serialize_002.phpt]
Test serialize(V8Js) : __sleep and __wakeup throw [tests/serialize_basic.phpt]
Test V8::setAverageObjectSize() : Average object size can be set on V8Js object [tests/set_average_object_size_basic.phpt]
Test V8::setMemoryLimit() : Memory limit applied to V8Function calls [tests/set_memory_limit_001.phpt]
Test V8::setMemoryLimit() : Memory limit can be imposed later [tests/set_memory_limit_003.phpt]
Test V8::setMemoryLimit() : Memory limit can be set on V8Js object [tests/set_memory_limit_basic.phpt]
Test V8::setTimeLimit() : Time limit applied to V8Function calls [tests/set_time_limit_001.phpt]
Test V8::setTimeLimit() : Time limit can be changed [tests/set_time_limit_002.phpt]
Test V8::setTimeLimit() : Time limit can be imposed later on [tests/set_time_limit_003.phpt]
Test V8::setTimeLimit() : Time limit can be prolonged [tests/set_time_limit_004.phpt]
Test V8::setTimeLimit() : Time limit can be set on V8Js object [tests/set_time_limit_basic.phpt]
Test V8::executeString() : Time limit [tests/time_limit.phpt]
Test V8::executeString() : Check timezone handling [tests/timezones.phpt]
Test V8::executeString() : Check if imported code works with umlauts [tests/unicode.phpt]
Test V8::executeString() : Use after dispose [tests/use_after_dispose.phpt]
Test V8::executeString() : unset property on V8Object [tests/v8_unset_property.phpt]
Test V8::executeString() : write property on V8Object [tests/v8_write_property.phpt]
Test V8::executeString() : var_dump [tests/var_dump.phpt]
Test V8::executeString() : simple variables passed from PHP [tests/variable_passing.phpt]
=====================================================================

Thank you

stesie commented 6 years ago

Please show the contents of one of the tests/*.out files, which result from running make test

Stasuart commented 6 years ago

Thank you for feedback Here are the output of 3 files. The same error with all of them..

array_access_001.out

---- EXPECTED OUTPUT
string(13) "one,two,three"
string(17) "one,two,three,new"
===EOF===
---- ACTUAL OUTPUT
/opt/bitnami/php/bin/php.bin: symbol lookup error: /tmp/v8js/modules/v8js.so: u$
---- FAILED

array_access_001.out /opt/bitnami/php/bin/php.bin: symbol lookup error: /tmp/v8js/modules/v8js.so: u$

serialize_001.out

---- EXPECTED OUTPUT
object(V8Object)#2 (1) {
  ["foo"]=>
  int(23)
}
string(13) "V8JsException"
string(54) "You cannot serialize or unserialize V8Object instances"
string(13) "V8JsException"
string(54) "You cannot serialize or unserialize V8Object instances"
bool(false)
string(13) "V8JsException"
string(54) "You cannot serialize or unserialize V8Object instances"
bool(false)
===EOF===
---- ACTUAL OUTPUT
/opt/bitnami/php/bin/php.bin: symbol lookup error: /tmp/v8js/modules/v8js.so: u$
---- FAILED
stesie commented 6 years ago

Is Bitnami some vanilla PHP or do they patch stuff? I've never seen some u$ symbol.

You'll likely want to use nm or so to look where the reference is coming from

Stasuart commented 6 years ago

Bitnami is a LAMP stack, as I know they pack vanilla PHP, mysql etc. all together~ I am using it just to speed up development environment. Weird, because on the forum I've never seen such issue as mine so thanks to your reference, possible that this stack causes an issue. Now I am trying v8 & v8js installation over plain PHP~

stesie commented 5 years ago

@Stasuart have you found out what the problem is? Problem with Bitnami?