Closed mhf-ir closed 6 years ago
Reported to http://qa.php.net/reports please check Using libv8-6.3
libv8-6.3
root@aasaam-app:/tmp/v8js# make /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_array_access.cc -o v8js_array_access.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_array_access.cc -fPIC -DPIC -o .libs/v8js_array_access.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_class.cc -o v8js_class.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_class.cc -fPIC -DPIC -o .libs/v8js_class.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_commonjs.cc -o v8js_commonjs.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_commonjs.cc -fPIC -DPIC -o .libs/v8js_commonjs.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_convert.cc -o v8js_convert.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_convert.cc -fPIC -DPIC -o .libs/v8js_convert.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_exceptions.cc -o v8js_exceptions.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_exceptions.cc -fPIC -DPIC -o .libs/v8js_exceptions.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_generator_export.cc -o v8js_generator_export.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_generator_export.cc -fPIC -DPIC -o .libs/v8js_generator_export.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_main.cc -o v8js_main.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_main.cc -fPIC -DPIC -o .libs/v8js_main.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_methods.cc -o v8js_methods.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_methods.cc -fPIC -DPIC -o .libs/v8js_methods.o /tmp/v8js/v8js_methods.cc: In function ‘void v8js_register_methods(v8::Local<v8::ObjectTemplate>, v8js_ctx*)’: /tmp/v8js/v8js_methods.cc:511:30: warning: ISO C++ forbids converting a string constant to ‘std::vector<char*>::value_type {aka char*}’ [-Wwrite-strings] c->modules_base.push_back(""); ^ /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_object_export.cc -o v8js_object_export.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_object_export.cc -fPIC -DPIC -o .libs/v8js_object_export.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_timer.cc -o v8js_timer.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_timer.cc -fPIC -DPIC -o .libs/v8js_timer.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_v8.cc -o v8js_v8.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_v8.cc -fPIC -DPIC -o .libs/v8js_v8.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_v8object_class.cc -o v8js_v8object_class.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_v8object_class.cc -fPIC -DPIC -o .libs/v8js_v8object_class.o /bin/bash /tmp/v8js/libtool --mode=compile g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_variables.cc -o v8js_variables.lo libtool: compile: g++ -Wno-narrowing -std=c++11 -I. -I/tmp/v8js -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -c /tmp/v8js/v8js_variables.cc -fPIC -DPIC -o .libs/v8js_variables.o /bin/bash /tmp/v8js/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -I/opt/libv8-6.3//include -I/opt/libv8-6.3/ -DHAVE_CONFIG_H -g -O2 -Wl,--rpath=/opt/libv8-6.3//lib -o v8js.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/v8js/modules v8js_array_access.lo v8js_class.lo v8js_commonjs.lo v8js_convert.lo v8js_exceptions.lo v8js_generator_export.lo v8js_main.lo v8js_methods.lo v8js_object_export.lo v8js_timer.lo v8js_v8.lo v8js_v8object_class.lo v8js_variables.lo -lv8_libplatform -Wl,-rpath,/opt/libv8-6.3//lib -L/opt/libv8-6.3//lib -lv8 libtool: link: cc -shared -fPIC -DPIC .libs/v8js_array_access.o .libs/v8js_class.o .libs/v8js_commonjs.o .libs/v8js_convert.o .libs/v8js_exceptions.o .libs/v8js_generator_export.o .libs/v8js_main.o .libs/v8js_methods.o .libs/v8js_object_export.o .libs/v8js_timer.o .libs/v8js_v8.o .libs/v8js_v8object_class.o .libs/v8js_variables.o -lv8_libplatform -L/opt/libv8-6.3//lib -lv8 -g -O2 -Wl,--rpath=/opt/libv8-6.3//lib -Wl,-rpath -Wl,/opt/libv8-6.3//lib -Wl,-soname -Wl,v8js.so -o .libs/v8js.so libtool: link: ( cd ".libs" && rm -f "v8js.la" && ln -s "../v8js.la" "v8js.la" ) /bin/bash /tmp/v8js/libtool --mode=install cp ./v8js.la /tmp/v8js/modules libtool: install: cp ./.libs/v8js.so /tmp/v8js/modules/v8js.so libtool: install: cp ./.libs/v8js.lai /tmp/v8js/modules/v8js.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /tmp/v8js/modules ---------------------------------------------------------------------- Libraries have been installed in: /tmp/v8js/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. root@aasaam-app:/tmp/v8js# make test Build complete. Don't forget to run 'make test'. ===================================================================== PHP : /usr/bin/php7.2 PHP_SAPI : cli PHP_VERSION : 7.2.0RC3 ZEND_VERSION: 3.2.0-dev PHP_OS : Linux - Linux aasaam-app 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 INI actual : /tmp/v8js/tmp-php.ini More .INIs : CWD : /tmp/v8js Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2017-10-05 10:20:09 ===================================================================== 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] PASS Test V8::executeString() : Simple test [tests/basic.phpt] FAIL Test V8::executeString() : Call JS from PHP [tests/callbacks.phpt] PASS Test V8::executeString() : Script validator test [tests/checkstring.phpt] PASS 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] PASS Test V8Js::setModuleLoader : Returned modules are cached [tests/commonjs_caching_001.phpt] PASS Test V8Js::setModuleLoader : module cache seperated per isolate [tests/commonjs_caching_002.phpt] PASS Test V8Js::setModuleNormaliser : Custom normalisation #001 [tests/commonjs_cust_normalise_001.phpt] PASS Test V8Js::setModuleNormaliser : Custom normalisation #002 [tests/commonjs_cust_normalise_002.phpt] PASS Test V8Js::setModuleNormaliser : Custom normalisation #003 [tests/commonjs_cust_normalise_003.phpt] PASS Test V8Js::setModuleNormaliser : Custom normalisation #004 [tests/commonjs_cust_normalise_004.phpt] PASS Test V8Js::setModuleLoader : Handle fatal errors gracefully [tests/commonjs_fatal_error.phpt] PASS Test V8Js::setModuleLoader : CommonJS modules [tests/commonjs_modules.phpt] PASS Test V8Js::setModuleLoader : Assign result multiple times [tests/commonjs_multiassign.phpt] PASS Test V8Js::setModuleLoader : Path normalisation #001 [tests/commonjs_normalise_001.phpt] PASS Test V8Js::setModuleLoader : Path normalisation #002 [tests/commonjs_normalise_002.phpt] PASS Test V8Js::setModuleLoader : Path normalisation #003 [tests/commonjs_normalise_003.phpt] PASS Test V8Js::setModuleLoader : Path normalisation #004 [tests/commonjs_normalise_004.phpt] PASS Test V8Js::setModuleLoader : Path normalisation #005 [tests/commonjs_normalise_005.phpt] PASS Test V8Js::setModuleLoader : Module source naming [tests/commonjs_source_naming.phpt] PASS Test V8::compileString() : Compile and run a script [tests/compile_string.phpt] PASS Test V8::compileString() : Check compiled script isolate processing [tests/compile_string_isolate.phpt] PASS Test V8::executeString() : Calling construct twice [tests/construct.phpt] PASS Test V8::executeString() : test context preserving [tests/context_preserving.phpt] PASS Test V8::executeString() : test context separation [tests/context_separation.phpt] FAIL Test V8::executeString() : correct temp context construction [tests/context_temp_creation.phpt] PASS 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] PASS Test V8::executeString() : Properties on derived class [tests/derived_class_properties.phpt] PASS Test V8::executeString() : Extra properties on derived class [tests/derived_class_properties_extra.phpt] PASS Test V8::executeString() : Initialized properties on derived class [tests/derived_class_properties_init.phpt] PASS 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] PASS Test V8::executeString() : direct construction is prohibited [tests/direct_construct.phpt] PASS Test V8::executeString() : V8JsScriptException [tests/exception.phpt] PASS 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] PASS Test V8::executeString() : Test getJsStartColumn on script exception [tests/exception_start_column.phpt] PASS 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] PASS Test V8::registerExtension() : Basic extension registering [tests/extensions_basic.phpt] PASS Test V8::registerExtension() : Circular dependencies [tests/extensions_circular_dependency.phpt] PASS Test V8::registerExtension() : Register extension with errors [tests/extensions_error.phpt] 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] PASS Test V8::executeString() : Call passed-back function (directly) [tests/function_call.phpt] PASS Test V8::executeString() : Call passed-back function [tests/function_passback.phpt] PASS Test V8::executeString() : Call passed-back function (property access) [tests/function_passback2.phpt] PASS Test V8::executeString() : Set property on function [tests/function_properties.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (foreach) [tests/generators_from_v8_001.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (direct) [tests/generators_from_v8_002.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (rewind) [tests/generators_from_v8_003.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + foreach) [tests/generators_from_v8_004.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (instantiate in PHP + iterate in JS) [tests/generators_from_v8_005.phpt] PASS Test V8::executeString() : Generators V8 -> PHP (yield from) [tests/generators_from_v8_006.phpt] PASS 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] PASS Test V8::executeString() : Generators V8 -> PHP (properties) [tests/generators_from_v8_010.phpt] PASS 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] PASS 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 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] PASS Test V8Function::__call() : Check v8::TryCatch behaviour [tests/issue_127_001.phpt] FAIL Test V8::executeString() : Backwards compatibility for issue #156 [tests/issue_156_001.phpt] PASS Test V8::executeString() : Issue #160 V8Function affected by V8Js::FLAG_FORCE_ARRAY [tests/issue_160_basic.phpt] PASS Test V8::executeString() : Method access on derived classes (protected) [tests/issue_183_001.phpt] PASS Test V8::executeString() : Method access on derived classes (private) [tests/issue_183_002.phpt] PASS Test V8::executeString() : Method access on derived classes (V8Js methods) [tests/issue_183_003.phpt] PASS 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] PASS Test V8::executeString() : Method access on derived classes [tests/issue_183_basic.phpt] PASS Test V8::executeString() : Issue #185 this on direct invocation of method [tests/issue_185_001.phpt] PASS Test V8::executeString() : Issue #185 this on function invocation [tests/issue_185_002.phpt] PASS Test V8::executeString() : Issue #185 Wrong this on V8Object method invocation [tests/issue_185_basic.phpt] PASS 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] PASS Test V8::executeString() : Issue #306 V8 crashing on toLocaleString() [tests/issue_306_basic.phpt] PASS Test V8::executeString() : Issue #316 endless property iteration [tests/issue_316_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] PASS 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] PASS Test V8::executeString() : Memory limit [tests/memory_limit.phpt] FAIL Test V8::executeString() : Use multiple V8js instances with objects [tests/multi-object.phpt] PASS Test V8::executeString() : Use multiple V8js instances [tests/multi.phpt] PASS Test V8::executeString() : Pass strings with null-bytes [tests/null_byte_string.phpt] FAIL Test V8::executeString() : Object passed from PHP [tests/object.phpt] SKIP Test V8::executeString() : DOM object passed from PHP [tests/object_dom.phpt] reason: ext-dom required 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] PASS 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] PASS 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] PASS 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] PASS Test serialize(V8Object) : __sleep and __wakeup throw [tests/serialize_001.phpt] PASS Test serialize(V8Function) : __sleep and __wakeup throw [tests/serialize_002.phpt] PASS Test serialize(V8Js) : __sleep and __wakeup throw [tests/serialize_basic.phpt] PASS Test V8::setAverageObjectSize() : Average object size can be set on V8Js object [tests/set_average_object_size_basic.phpt] PASS 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] PASS Test V8::setMemoryLimit() : Memory limit can be set on V8Js object [tests/set_memory_limit_basic.phpt] PASS 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] PASS Test V8::setTimeLimit() : Time limit can be set on V8Js object [tests/set_time_limit_basic.phpt] PASS Test V8::executeString() : Time limit [tests/time_limit.phpt] FAIL Test V8::executeString() : Check timezone handling [tests/timezones.phpt] PASS 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] PASS Test V8::executeString() : unset property on V8Object [tests/v8_unset_property.phpt] PASS Test V8::executeString() : write property on V8Object [tests/v8_write_property.phpt] FAIL Test V8::executeString() : var_dump [tests/var_dump.phpt] FAIL Test V8::executeString() : simple variables passed from PHP [tests/variable_passing.phpt] ===================================================================== TIME END 2017-10-05 10:20:27 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 0 Exts tested : 16 --------------------------------------------------------------------- Number of tests : 167 165 Tests skipped : 2 ( 1.2%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 80 ( 47.9%) ( 48.5%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 85 ( 50.9%) ( 51.5%) --------------------------------------------------------------------- Time taken : 18 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() : Call JS from PHP [tests/callbacks.phpt] Test V8::executeString() : Simple test [tests/closures_basic.phpt] Test V8::executeString() : Dynamic closure call test [tests/closures_dynamic.phpt] Test V8::executeString() : correct temp context construction [tests/context_temp_creation.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() : Handle die() gracefully [tests/die.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() : 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::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() : 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 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() : Get constructor method [tests/get_constructor.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 V8::executeString() : Backwards compatibility for issue #156 [tests/issue_156_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() : 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 64-bit export from PHP to JS [tests/long_int64.phpt] Test V8::executeString() : Use multiple V8js instances with objects [tests/multi-object.phpt] Test V8::executeString() : Object passed from PHP [tests/object.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() : 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 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) [tests/return_this_basic.phpt] Test V8::executeString() : Return values [tests/return_value.phpt] Test V8::setMemoryLimit() : Memory limit can be imposed later [tests/set_memory_limit_003.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::executeString() : Check timezone handling [tests/timezones.phpt] Test V8::executeString() : Use after dispose [tests/use_after_dispose.phpt] Test V8::executeString() : var_dump [tests/var_dump.phpt] Test V8::executeString() : simple variables passed from PHP [tests/variable_passing.phpt] =====================================================================
After using extension with your example:
php 1.php terminate called after throwing an instance of 'std::out_of_range' what(): map::at Received signal 6 ==== C stack trace =============================== [0x7fc07453ecd5] [0x7fc076daf4b0] [0x7fc076daf428] [0x7fc076db102a] [0x7fc0747fd84d] [0x7fc0747fb6b6] [0x7fc0747fb701] [0x7fc0747fb919] [0x7fc0748242cf] [0x7fc072773479] [0x7fc07276d3ab] [0x7fc072768fe1] [0x5561c78891ee] [0x5561c78a8d9e] [0x5561c78aca8e] [0x5561c77fb6b3] [0x5561c7796ac0] [0x5561c78aee59] [0x5561c764d4ac] [0x7fc076d9a830] [0x5561c764d5c9] [end of stack trace] Aborted (core dumped)
Try passing LDFLAGS="-lstdc++" to the ./configure call
LDFLAGS="-lstdc++"
./configure
Reported to http://qa.php.net/reports please check Using
libv8-6.3
After using extension with your example: