Stefan Siegl
4bfe2ef3ce
rename to setExceptionFilter
2022-06-24 12:04:11 +02:00
Stefan Siegl
ca38f724c8
handle exceptions thrown in proxy factory
2022-06-01 08:04:41 +02:00
Stefan Siegl
ac2b1cb238
introduce setExceptionProxyFactory
2022-06-01 08:04:41 +02:00
waqasbelushi
e648f431ac
all test passed v8 8.9
2021-04-05 17:36:59 +02:00
Jan-E
672d6952fd
make it compile with PHP 7.4 on Windows
2020-04-05 06:24:58 +02:00
Stefan Siegl
801c744885
Merge pull request #435 from timothympace/api_updates
...
Remove deprecated Context versions of ToBoolean and BooleanValue
2020-03-06 10:27:05 +01:00
Timothy Pace
3955409f56
Remove deprecated Context versions of ToBoolean and BooleanValue
2020-02-13 16:42:40 -08:00
Tyson Andre
7fd31e8b5a
Fix sprintf call for "converting parameter .. failed"
...
```
union _zend_function {
zend_uchar type; /* MUST be the first element of this struct! */
uint32_t quick_arg_flags;
struct {
zend_uchar type; /* never used */
zend_uchar arg_flags[3]; /* bitset of arg_info.pass_by_reference */
uint32_t fn_flags;
zend_string *function_name;
```
2020-01-03 12:22:39 -05:00
Tyson Andre
63d65a59ae
Pass pointer to (char*) instead of (zend_string*) to spprintf
...
I don't believe these error messages have any unit tests covering them.
Some may be unreachable in practice.
This might not be comprehensive - I didn't test other files.
```
struct _zend_class_entry {
char type;
zend_string *name;
```
2020-01-03 12:17:04 -05:00
Stefan Siegl
35398cc4e3
add zend_class_entry* to method_tmpls key, fixes #410
2019-06-22 19:15:05 +02: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
Jan-E
0c2b55d802
Add GC_(UN)PROTECT_RECURSION, move (un)protecting outside loops
2018-07-05 11:41:32 +02:00
Jan-E
826aaa689c
Change to GC_IS_RECURSIVE for PHP 7.3
2018-07-05 11:30:20 +02:00
Stefan Siegl
f1e2c36a0a
Merge remote-tracking branch 'stesie/remove-compat-exceptions' into php7
2017-11-26 12:27:02 +01:00
Stefan Siegl
278b4fbedb
Merge remote-tracking branch 'remotes/stesie/global-object' into php7
2017-11-26 12:21:50 +01:00
Stefan Siegl
302bf1d0ff
remove v8js.compat_php_exceptions
2017-11-26 11:48:52 +01:00
Stefan Siegl
7a947fe9d1
rename v8js_tmpl_t -> v8js_function_tmpl_t
2017-11-12 15:22:39 +01:00
Stefan Siegl
8e8306ae3e
allow enumeration of methods
...
-> actually our properties said this shouldn't be possible
-> however v8js_named_property_enumerator enumerated the methods
-> older V8 versions listed the methods anyways
-> V8 6.3 started to not list the method now
refs #326
2017-09-24 13:59:34 +02:00
Jan-E
53533cd4dd
remove ZEND_ACC_CLONE
2017-06-13 18:14:12 +02:00
Stefan Siegl
13e0b77015
Fix left-over deprecated API calls.
2017-04-24 20:43:52 +02:00
Stefan Siegl
51335bfa17
remove unused variable
2017-03-11 17:54:44 +01:00
Stefan Siegl
745126b5cb
remove left-over TSRM stuff
2017-03-11 13:45:23 +01:00
Stefan Siegl
3e8ef5f684
remove V8JS_TSRMLS_FETCH
2017-03-11 13:43:30 +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
db7c81d4fa
v8js_object_export: add size checks + precission down casts
2017-03-10 23:49:18 +01:00
Stefan Siegl
fa613c5cb2
Update links to old Github repo
2016-11-01 21:16:01 +01:00
Stefan Siegl
dbd97acf20
Merge pull request #242 from stesie/fix-php7.1alpha2
...
Fix build against PHP 7.1.0alpha2
2016-08-12 15:41:58 +02:00
Stefan Siegl
880b17a45c
Merge pull request #243 from stesie/code-cleanup
...
fix compiler warnings
2016-08-12 15:41:27 +02:00
Stefan Siegl
5ae48bbda7
Fix refcounting, use zval_ptr_dtor, closes #250
2016-08-12 01:02:56 +02:00
Stefan Siegl
157f34521e
fix compiler warnings
2016-07-03 22:32:03 +02:00
Stefan Siegl
93119f1bc2
Fix build against PHP 7.1.0alpha2
2016-07-03 00:25:42 +02:00
Stefan Siegl
8668d28df3
Remove V8JS_CONST preprocessor define
2016-07-02 23:02:17 +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
2e5a565237
Remove (meanwhile) unreferenced local variables
2016-05-26 21:53:17 +02:00
Stefan Siegl
8287a19c8d
Remove conditional compilation of generator support
...
All supported V8 versions (>= 4.6.76) have support for JS generators,
therefore it's no longer needed.
2016-05-22 23:47:36 +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
ec6c6d3eb3
Use WeakCallbackInfo
...
WeakCallbackData was deprecated and finally removed in V8 5.2
2016-05-22 20:08:28 +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
d44592910d
Retain object indentity on 'return $this'
2016-03-25 19:15:25 +01:00
Stefan Siegl
d6394301b2
Pass back V8Object instances, don't re-wrap
2016-03-25 17:40:43 +01:00
Stefan Siegl
12903ca269
add V8Js::setAverageObjectSize method
2016-03-08 09:28:16 +01:00
Stefan Siegl
bf6effba63
Merge remote-tracking branch 'origin/master' into php7
2016-03-05 22:21:42 +01:00
Stefan Siegl
89399fa961
Disable generator export for V8 < 3.30 (not supported)
2016-01-09 14:17:48 +01:00
Stefan Siegl
80575beecc
Don't create v8::HandleScope in v8js_wrap_generator
2016-01-09 14:05:19 +01:00
Stefan Siegl
a18ae9e853
Implement JS-side wrapper around PHP Generator objects
2016-01-09 12:50:40 +01:00