Jan-E
672d6952fd
make it compile with PHP 7.4 on Windows
2020-04-05 06:24:58 +02:00
Timothy Pace
3955409f56
Remove deprecated Context versions of ToBoolean and BooleanValue
2020-02-13 16:42:40 -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
90b6b31f06
break recursion immediately on PHP <= 7.2 as well
2018-07-13 15:52:41 +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
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
a493919a17
extract function zend_long_to_v8js
2017-03-10 22:58:53 +01:00
Stefan Siegl
e5f57b7661
move #undef min/max to v8js_v8.h
2017-03-10 22:51:15 +01:00
Stefan Siegl
fe2e289a32
ulong -> zend_ulong
2017-03-08 18:19:34 +01:00
Stefan Siegl
7af272a709
throw on string export beyond int-max length
2017-03-08 18:19:34 +01:00
Stefan Siegl
754a663e81
move #undef directives to the top of the file
2017-03-08 18:14:40 +01:00
Stefan Siegl
e86c957811
fix long vs. zend_long issue on Windows, refs #292
2017-03-08 07:38:42 +01:00
Stefan Siegl
8126fc4928
Handle Z_TYPE == IS_REFERENCE well, fixes #246
2016-08-11 18:54:38 +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
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
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
227ad57163
prefer V8JS_ZSTR over V8JS_STRL(Z_STRVAL), refs #180
2015-12-04 20:14:47 +01: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
8a3124ee2a
handle new IS_INDIRECT and IS_UNDEF in zval->js export
2015-10-02 23:19:32 +02:00
Stefan Siegl
909e3f004d
Adapt to PHP7: v8js_convert.cc, v8js_exception.cc, v8js_methods.cc
2015-08-28 21:05:16 +02:00
Stefan Siegl
53995ac616
Make FLAG_FORCE_ARRAY not affect V8Function objects, #closes 160
2015-08-26 18:41:38 +02:00
Stefan Siegl
2d0aa9b2cc
adapt PHPJS_OBJECT_KEY from zval* to zend_object*
2015-08-24 21:13:35 +02:00
Stefan Siegl
8389e126b5
adapt to changed ZVAL_STRING/ZVAL_STRINGL/RETVAL_STRINGL macros
2015-08-23 21:14:49 +02:00
Stefan Siegl
45f7e18624
Remove conditional compilation for PHP_VERSION_ID < 7.0.0
2015-08-23 21:10:47 +02:00
Stefan Siegl
5b4aaa64f1
More php_v8js_ prefix cleanup
2014-12-13 01:37:25 +01:00
Stefan Siegl
294a5c8d1f
php_v8js_create_v8 -> v8js_v8object_create
2014-12-13 01:21:02 +01:00
Stefan Siegl
3efec8d428
Remove CVS $Id$ comment lines
2014-12-13 00:45:05 +01:00
Stefan Siegl
6869d318b3
Rename V8Object stuff to v8js_v8object_XXX
2014-12-13 00:28:09 +01:00
Stefan Siegl
2b4750748e
Merge branch 'array-access'
...
Conflicts:
v8js_convert.cc
2014-12-10 20:02:33 +01:00
Stefan Siegl
a2a9c30a11
Use zend_try/zend_catch to unwind v8 stack
2014-12-09 23:56:46 +00:00
Stefan Siegl
fc583a8ec6
Move PHP to JS object wrapping into seperate file
2014-11-29 15:42:41 +01:00
Stefan Siegl
ddcaee47d6
Refactor array access code into seperate files
2014-11-25 21:06:11 +01:00
Stefan Siegl
1121d5f4d0
Skip unnecessary v8::FunctionTemplate fluff
2014-11-23 23:49:36 +01:00
Stefan Siegl
3f6ea8fcfd
Set Array.prototype on ArrayAccess wrapped object
2014-11-23 23:47:29 +01:00
Stefan Siegl
f1dd5ad23b
Add basic ArrayAccess wrapping
2014-11-23 23:39:15 +01:00
Stefan Siegl
920d9eeb33
Strip second timezone specification
...
v8 adds two timezone specifications to date strings.
However PHP fails to parse the second one, generated
on Windows systems. Hence just strip away the redundant
specification and pass that one to PHP.
2014-11-16 22:33:32 +01:00
Stefan Siegl
fc89b6ba8c
eliminate left-over variable-size arrays
2014-11-13 01:36:01 +01:00
Stefan Siegl
5b736a6e92
Undefine min/max macros
2014-11-13 00:58:32 +01:00
Stefan Siegl
8d8aed1e72
Reject V8Function passback to wrong isolate, closes #116
2014-10-31 23:35:28 +00:00
Stefan Siegl
3145ea0323
Set hidden data also on already know weak objects, closes #121
2014-10-30 22:02:13 +00:00
Stefan Siegl
c339d51924
Drop old-age PHP_V8_API_VERSION #ifdef
2014-10-19 12:20:10 +00:00
Stefan Siegl
f6310f9994
Get rid of V8JS_NEW macro.
2014-10-19 11:58:21 +00:00