0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-23 01:51:51 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
Christiano Becker
752cbdb8ac Since ArrayBuffer has InternalFieldCount set to 2 by default, added !isArrayBuffer() and !isArrayBufferView() to ensure that is PHP object 2023-02-27 08:03:22 -03:00
Stefan Siegl
7887ec6475 Merge branch 'php7' into php8 2023-02-03 19:25:54 +01:00
Stefan Siegl
26de750e8e auto-detect V8 sandbox and call InitializeSandbox if needed 2022-06-27 18:00:49 +02:00
Stefan Siegl
23cc21c5b8 call InitializeSandbox 2022-06-24 21:54:08 +02:00
Stefan Siegl
f6a93c3cd6 Remove support for uncaught exceptions. Use try/catch. 2022-05-31 09:53:09 +02:00
Mark Grainger
51d34e0acd Fix for V8 timezone notification 2022-05-30 20:24:55 +00:00
Stefan Siegl
3257a86bef hold extra reference on v8 instance as long as we call into V8, closes #472 2022-05-29 21:48:47 +02:00
waqasbelushi
e648f431ac
all test passed v8 8.9 2021-04-05 17:36:59 +02:00
Stefan Siegl
8fe3cbc292
correctly load V8 8.x snapshot blob 2020-03-06 10:30:47 +01:00
Timothy Pace
3955409f56 Remove deprecated Context versions of ToBoolean and BooleanValue 2020-02-13 16:42:40 -08:00
Timothy Pace
68d2274297 Handle API removal of CreateDefaultPlatform 2019-02-11 12:16:35 -08:00
Stefan Siegl
9c45508183
omit use of deprecated apis 2018-09-13 14:01:15 +02:00
Stefan Siegl
ab6e2267af
adapt mandatory api changes for V8 7.0.276.3, refs #374 2018-09-12 15:43:48 +02:00
Stefan Siegl
13e0b77015
Fix left-over deprecated API calls. 2017-04-24 20:43:52 +02:00
Stefan Siegl
989f0ae82c
Add php.ini setting v8js.icudtl_dat_path 2017-04-21 18:21:25 +02:00
Stefan Siegl
5f08db8a49
Don't initialize ICU on V8 < 5.3.178 2017-04-14 21:00:31 +02:00
Stefan Siegl
c957be8b2a
Initialize ICU as (meanwhile) needed 2017-04-14 21:00:31 +02:00
Stefan Siegl
f02b44b3f8 make memory_limit a size_t internally 2017-03-11 17:57:33 +01:00
Stefan Siegl
745126b5cb remove left-over TSRM stuff 2017-03-11 13:45:23 +01:00
Stefan Siegl
24bb1761bf remove TSRMLS_DC, TSRMLS_CC 2017-03-11 13:35:21 +01:00
Stefan Siegl
d97832d9fb v8::Handle -> v8::Local 2017-03-11 13:31:40 +01:00
Stefan Siegl
288fe4d2a0 PHP Version 5 -> 7 2017-03-11 12:33:49 +01:00
Stefan Siegl
d2c171a83f fix bound check: uint32_t -> int 2017-03-11 10:14:30 +01:00
Stefan Siegl
ab8613f41b v8js_v8: add size check + precission down cast 2017-03-10 23:53:11 +01:00
Stefan Siegl
77e7338018 Don't try to guess if blob.bin files are needed
Search for them, if they exist, provide them to V8.  Otherwise
try to go without them.
2016-12-05 16:29:03 +00:00
Stefan Siegl
5ae48bbda7 Fix refcounting, use zval_ptr_dtor, closes #250 2016-08-12 01:02:56 +02:00
Stefan Siegl
c459acd1ef Merge remote-tracking branch 'origin/master' into php7 2016-07-02 22:59:33 +02:00
Stefan Siegl
3278be8bee Add 'indent-tabs-mode: t' to file variables 2016-07-02 22:48:45 +02:00
Stefan Siegl
c4c5a19165 fix wrapped php object detection, closes #240
V8 since 5.3.337 returns InternalFieldCount() == -1 for
special objects like "arguments", which fulfilled the old
check.
2016-07-02 22:35:58 +02:00
Stefan Siegl
e9e90bac65 Merge remote-tracking branch 'origin/master' into php7
Conflicts:
      config.w32
      package.xml
      php_v8js_macros.h
      v8js.cc
      v8js_array_access.cc
      v8js_class.cc
      v8js_convert.cc
      v8js_exceptions.cc
      v8js_object_export.cc
      v8js_timer.cc
      v8js_v8.cc
      v8js_v8object_class.cc
2016-05-22 22:30:19 +02:00
Stefan Siegl
05b96a96b8 Use internal fields instead of GetHiddenValue/SetHiddenValue
The latter were deprecated and removed in V8 5.2
2016-05-22 15:20:52 +02:00
Stefan Siegl
4fea8f4fb9 Require V8 4.6.76 or higher
... and hence remove all #ifdef hell.  Those versions didn't have
security support by Google anyhow, and it helps to drastically
shrink the test matrix.
2016-05-11 16:50:37 +02:00
Stefan Siegl
3dca462e9d Use V8::LowMemoryNotification on V8 < 3.28.36 2016-03-26 14:11:20 +01:00
Stefan Siegl
b2eb89e49e send LowMemoryNotification before imposing memory limit, fixes #217 2016-03-26 00:53:52 +01:00
Stefan Siegl
4faab8842c Re-check memory limit, refs #217 2016-03-26 00:37:53 +01:00
Stefan Siegl
bf6effba63 Merge remote-tracking branch 'origin/master' into php7 2016-03-05 22:21:42 +01:00
Stefan Siegl
40f0f5e89f Provide startup data loader for V8 < 4.6.76 2016-02-28 20:17:20 +01:00
Stefan Siegl
39062b4248 Test for snapshot support in V8
Looks like we have to test for internal functions unfortunately
since the public V8 snapshot API is available no matter whether
the library really supports it or not.
2016-02-28 17:48:44 +01:00
Stefan Siegl
2c7a7ab87d Implement PHP-side iteration of JS generator objects 2016-01-07 21:35:44 +01:00
Stefan Siegl
c2a2cc341f Initialize libv8_platform for Windows as well
V8 doesn't work without libplatform anymore, even under
Windows.

Furthermore adapted two tests to \r\n vs. \n line
ending differences
2016-01-06 11:58:40 +00:00
Stefan Siegl
98205461be Reorder includes for Visual Studio 2015, closes #194
C++ headers need to go first, since PHP headers redefine
"inline" which causes trouble with the C++ header files.
2016-01-06 09:01:35 +00:00
Stefan Siegl
a83c49266e defer bailout until std::function dtor
std::function allocates some heap memory, at least with some
implementations and expects the dtor to run.  Hence defer the
bailout until the dtor ran.
2016-01-01 19:10:04 +01:00
Stefan Siegl
a520f49335 exit v8::HandleScope and v8::IsolateScope before bailing out
This fixes some memory leaks.
2015-12-31 23:44:01 +01:00
Stefan Siegl
7e1f2e9355 Fix use-after-free error wrt. pending exception
Don't dtor pending exception, PHP's exception handling does after all.
2015-12-30 17:46:29 +01:00
Stefan Siegl
3085db6aeb Merge remote-tracking branch 'origin/master' into php7 2015-10-11 19:51:59 +02:00
Stefan Siegl
b38c31b521 Remove v8::Debug agent stuff
Debug Agent support was removed from V8 with 3.28 line which
is pretty old meanwhile.
2015-10-11 19:47:22 +02:00
Stefan Siegl
5cba44ccd0 Merge remote-tracking branch 'origin/master' into php7
Conflicts:
	README.md
	v8js.cc
	v8js_class.cc
	v8js_exceptions.cc
	v8js_object_export.cc
	v8js_v8.cc
	v8js_v8object_class.cc
2015-10-11 02:09:59 +02:00
Stefan Siegl
c6136ec3d2 Fix globals ptr passing wrt. timer thread 2015-09-28 22:03:24 +02:00
Stefan Siegl
74440ed9f7 Move V8JSG extensions and v8_flags to process globals 2015-09-26 21:39:26 +02:00
Stefan Siegl
7d97c97d4c Fix multi-threading, initialize V8 only once 2015-09-26 18:58:12 +02:00